I want to have a template for Blazor Web App when publish will output one for blazor and one for HttpApi.host included Auth Server, but with Layered template for Blazor Web App and check Tiered option it will create a solution template with separated auth server. I tried for Blazor Web Assembly it has option "Separate Authentication Server" if i don't check it will create solution template as expected with integration of Auth Server into HttpApi.host.
How can I do the same for Blazor Web App.
Option for Blazor Web App:
Option for Blazor Web Assembly:
5 Answer(s)
-
0
For the Blazor Web App (Fullstack) template in ABP Framework, the current solution template does not provide an option to "Separate Authentication Server" like the Blazor WebAssembly template does. In the Blazor Web App layered template, the authentication server is integrated into the HttpApi.Host by default unless you select the "Tiered" option, which physically separates the Web and HTTP API layers (and may also separate the Auth Server).
If you want a single deployment output where the Blazor WebApp and HttpApi.Host (including the Auth Server) are together, simply do NOT check the "Tiered" option when creating your solution. This will generate a layered solution with the Auth Server integrated into the HttpApi.Host, matching your requirement.
Currently, there is no "Separate Authentication Server" checkbox for the Blazor Web App template. The separation is only controlled by the "Tiered" option. If you want the same behavior as Blazor WebAssembly (where you can choose to separate or not), you must use the layered template and leave "Tiered" unchecked.
Source:
- https://abp.io/docs/latest/solution-templates/layered-web-application/web-applications
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
Your AI answer does not meet my expectation I want to separate hosting for Blazor and Backend Api included Auth Server, I don't want to output a single deployment
-
0
hi
It does not support this kind of structural solution.
I will create an internal issue to track your request.
Thanks.
-
0
Is there any work around solution to customize for expected structure? Thanks Dharma
-
0
hi
You can merge the API into the AuthServer project, then update the project URLs.
Thanks.