Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Handling code after Entra ID authentication in Blazor WASM

$
0
0

I have a Blazor WASM Standalone app that uses Entra ID (External) to authenticate users. Previously, I was using Azure AD B2C with this app and everything was working fine. Microsoft no longer offers Azure AD B2C so I switched to Entra ID.

The issue is that after the user authenticates, Entra ID sends a code which I believe is the first step in getting id_token and access_token. The problem is that when the code is received, I end up getting a page not found error -- see image below. On Entra Admin Center portal, this Blazor WASM app is registered as a SPA app with call back URL set to https://example.com/authentication/login-callback so it should be working fine.

enter image description here

I'm not sure why I get this error because MSAL should be handling this part. I followed the following article to set up my Blazor WASM with Entra:https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/standalone-with-microsoft-entra-id?view=aspnetcore-10.0

Any idea what may be the issue here? I'd appreciate any suggestions you may have. Thank you!

P.S. My Blazor WASM app is hosted on Azure Static Web apps and targets .NET 10. I also have the NuGet package for Microsoft.Authentication.WebAssembly.Msal version 10.0.2 installed.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>