aspnetcore
aspnetcore copied to clipboard
Blazor WASM: MSAL authentication stuck on login callback
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
This seems to be the bug mention on #43317 . It's still happening on Blazor WASM running .NET 8.0. As described on the original bug #43317, sometimes the authentication process gets stuck on the `authentication/login- callback' url and the user isn't redirected to the correct url (default page). This happens even when run on local mode (ie, no trimming configured). #43317 seems to imply that this happens due to trimming. However, I've already setup the "msal assemblies" as trimmer root assemblies, but the issue remains:
<ItemGroup>
<TrimmerRootAssembly Include="Microsoft.Authentication.WebAssembly.Msal" />
<TrimmerRootAssembly Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" />
</ItemGroup>
Expected Behavior
After completing the login successfully, the user should be redirected to the default page.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response