-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility for a Blazor (Server) Application as Identity Server template #1258
Comments
Apologies, I hadn't noticed this is a work in progress. I'll keep an eye on it. |
When you choose "Individual Accounts" when using the template it means your app is using ASP.NET Core Identity which is a framework + UI around cookie authentication. It handles user authentication for you and has a user store built-in. Only if you need federation you'll need an identity provider. Using IdentityServer that must be a separate application and your Blazor application won't need ASP.NET Core Identity in that case. In Blazor Server you can just configure it as any server-rendered application, such as our MVC sample here. You can, optionally, also use ASP.NET Core Identity in the IdentityServer application and that is probably where the confusion lies. Since IdentityServer doesn't have a built-in user store that could be handy and it will have the advantage that you don't have to build features like 2FA, account lockout and password reset yourself. |
Thank you for the reply, @RolandGuijt !
I have done this and you're right, configuring the Blazor server app with Identity Server works. Only the Single Sign On doesn't seem to work when authenticating from any configured client app. |
No there isn't. We have Razor pages in the templates at the moment. Can you help me to understand why you want this? Blazor Server with the SignalR connection etc. seems unnecessarily complicated to provide the UI. Razor pages or MVC seem more suitable for the job. |
Sure! It seems like Microsoft is going to be going forward with Blazor instead of Razor Pages. I've been working with it for about 4 months now and it does have some major advantages. |
I think it is great when a lot of user interaction is required. The pages IdentityServer uses are more static in nature. Because of that we'll probably continue to use Razor pages in our templates and examples. Unless that gets deprecated at some point. As far as I know MS hasn't got any plans in that direction. Closing this for now but feel free to reopen if you have further questions. |
Which version of Duende IdentityServer are you using?
7.0.4
Which version of .NET are you using?
8.0 ASP.NET Core Blazor (Server)
Describe the bug
I've been integrating Identity Server in a Blazor Webapp (Server) application (as opposed to the template's Razor Pages or MVC apps)
I realize authentication on Blazor has changed a bit and wonder if this is causing the SSO to break.
Considering there is no Blazor Server template / quickstart, I was wondering if what I'm trying is currently even possible.
To Reproduce
Expected behavior
Would it be possible to have a Blazor Server application integrate with Identity Server and .NET Identity to produce the same functionality as the Razor Pages or MVC templates?
Additional context
I would be happy to provide code and configuration I have now and contribute to a Blazor Quickstart template if possible. Thank you for taking the time.
The text was updated successfully, but these errors were encountered: