- ABP Framework version: v7.3.2
- UI Type: Angular & Blazor Server UI
- Database System: EF Core (MySQL)
- Tiered (for MVC) or Auth Server Separated (for Angular): Auth Server Separated
- Exception message and full stack trace:
- Steps to reproduce the issue:
I have an application template with EF Core MySQL and Angular. I want the Forms module to be included in my project, but since ABP is not providing UI for Forms in Angular as of now, I want to keep one separate microservice (with Blazor Server) for the Forms module. For that I have created a new microservice in my solution. And there I had the HttpApi.Host project, where Swagger UI is already configured. Here, I integrated the Forms module as a project, and I added the required Razor pages in the HttpApi.Host project of the service along with the required configuration.
But, now I am not sure how exactly I have to configure the authentication and authorization for the Forms Razor pages. Even though I am able to access the pages on the UI, but I can't perform anything because the user is unauthenticated. I have implemented the usual "oidc" authentication, which is as of now working, but authorization is something I'm not sure how to configure. I have granted all the forms permissions to the admin user through Angular UI, but it still says unauthorized. Can you help me with that?
39 Answer(s)
-
0
Any updates on the ticket please?
-
0
Hi,
I don't know the details of your project.
Can you please use the suite to create a new project to reproduce the problem and share it with me? I will check it asap. my email is shiwei.liang@volosoft.com
-
0
Sent you the project.
-
0
Hi,
Ok, you want to use the
FormsService.HttpApi.Host
as an app.You should add the account module to the project.
You can refer to the public web project to configure the
FormsService.HttpApi.Host
-
0
Can you tell me which exact module I need to add?
-
0
-
0
I'm trying to add typeof(AbpAccountPublicHttpApiClientModule) which belongs to the package "Volo.Abp.Account", but I am not able to find that package.
-
0
Hi
There is no
Volo.Abp.Account
package.You should add the account module to the project.
Sorry, I made a mistake. you don't need it.
-
0
What I have done now is, I have downloaded the forms module as a project. Here we have an IdentityServer project which acts as Auth Server. Now what I want is that I will run only the HttpApi.Host project and Web.Host project and the Auth Server should run from my already existing project which is in different solution, but I am getting internal server error. Is there any configuration I need to do to use an external Auth Server?
-
0
-
0
-
0
-
0
Could you share the error logs?
-
0
I have sent you the projects via email
-
0
-
0
I have created an entire new microservice template solution with BlazorServer as UI Framework. And there I added a new microservice named 'forms', and inside that service, I added the forms module as a project using abp suite. But here the problem is, I am not able to see the razor pages of the forms module. Only a folder named 'modules' is created where all the backed is configured and that's working as well. But I am not able to see the pages for UI. How can I get the pages to show the forms on the Blazor app?
-
0
You should add the
Volo.Forms.Web
project to the BlazorServer app.- Add the
FormsWebModule
Module dependencies. - Add the
@volo/forms
to the package.json and use theabp install-lis
to restore the npm packages.
- Add the
-
0
I don't have Volo.Forms.Web project
-
0
Hi,
Sorry, I mean the
Volo.Forms.Web
Nuget package. -
0
There is no such package as Volo.Forms.Web
-
0
Installed it manually using CLI.
-
0
-
0
-
0
Hi,
You can check the database and try to clear the Redis cache.
-
0