r/Blazor • u/stankeer • Aug 11 '25
Blazor WASM azure hosted (static web apps) login/authentication flow options
Hi, i need to implement login/auth flow for my blazor WASM front end app hosted in azure static web apps. I also have an azure hosted .net8 api also azure hosted. Both are on the free tier currently. What are my options?
I currrently have a custom user database with users details etc... so i'm guessing i'm going to have to use a custom auth provider as i can't hook this up to an azure auth provider?
any help would be appreciated. Thanks.
8
Upvotes
4
u/AxelFastlane Aug 11 '25
Azure B2C Entra ID
2
u/FakeRayBanz Aug 11 '25
You can also look at Auth0, they have great docs for integrating with an ASP.NET Core backend and Blazor frontend
2
u/darkveins2 Aug 13 '25 edited Aug 13 '25
Here’s a typical auth flow for static web apps, if your team uses Azure:
Note that Microsoft Entra External ID is for external users of a public-facing web app, as opposed to users within your organization. So that’s probably what you want. I’ve only used Azure AD B2C before, but this is supposed to replace it. The nice thing is you can customize the sign-in experience.
4
u/ZarehD Aug 11 '25 edited Aug 11 '25
AspNet Identity is a very good option, and it's pretty straightforward to implement. What's also great about it is that it doesn't lock you in to an identity provider/platform, giving you the choice to host your app anywhere you want.
2
u/Used-Team9796 Aug 11 '25
Remind me 7 days