Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
In .NET 9 a published blazor wasm standalone app seems to stuck during the "Completing Login" stage when logging in using MSAl to an Entra ID. This happens exclusively in published apps. I could not observe it during local development. Furthermore this issue only appears in mobile browsers such as Safari, Chrome & Edge and under their android versions.
Sometimes especially when after the cache has been cleared it seems to work one time. After logging out and trying to log in again it stucks again.
I have seen the already resolved issue #52619 and pull request #54225 but this seems to be unresolved for .NET 9 using the latest MSAL nuget packages (9.0.5).
Expected Behavior
The login should complete and redirect to according page when trying to log in onb mobile browsers. I tested it with the Entra ID of my workplace
Steps To Reproduce
Repository to reproduce the issue: https://github.com/mueller-marcel/AuthTest
- Add the TenantId and the ClientId to the appsettings.json
- Publish the app
- Access the app and login using a mobile Phone. (I tested it with iOS 18.5)
Exceptions (if any)
If the cache is cleared before the blazor wasm is openend it seems to work one time. The next time the page is openend or the user logs out and in again the login stucks again.
.NET Version
Host: Version: 9.0.5 Architecture: x64 Commit: e36e4d1a8f .NET SDKs installed: 9.0.300 [C:\Program Files\dotnet\sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Other architectures found: arm64 [C:\Program Files\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\arm64\InstallLocation] x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation] Environment variables: Not set global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/download
Anything else?
EDIT: It looks like the issue is gone when the LoginMode is set to redirect.