You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a Blazor Web App using .NET 9 and targeting InteractiveClient render mode (InteractiveWebAssembly). My goal is to have a true SPA experience, where UI logic runs in the browser.
However, I've discovered that authentication and authorization features (such as AuthenticationStateProvider, , and integration with MSAL/Azure AD/Entra ID) are not supported out-of-the-box in InteractiveClient mode. The official documentation seems to confirm this, stating that authentication is only supported for InteractiveServer components.
Questions:
Am I missing something? OR ...
Is there an official or community-recommended workaround to enable authentication/authorization in InteractiveClient mode?
Is exposing claims/roles via a server API endpoint and consuming them with HttpClient in Blazor components considered a best practice for showing/hiding UI elements?
Are there plans for official support for authentication in InteractiveClient mode in future .NET releases?
Any links to up-to-date guides, samples, or discussions would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a Blazor Web App using .NET 9 and targeting InteractiveClient render mode (InteractiveWebAssembly). My goal is to have a true SPA experience, where UI logic runs in the browser.
However, I've discovered that authentication and authorization features (such as AuthenticationStateProvider, , and integration with MSAL/Azure AD/Entra ID) are not supported out-of-the-box in InteractiveClient mode. The official documentation seems to confirm this, stating that authentication is only supported for InteractiveServer components.
Questions:
Any links to up-to-date guides, samples, or discussions would be greatly appreciated.
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions