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
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
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.
Given that having LoginMode set to redirect works, we'd recommend doing that since pop ups can be blocked. We should consider changing the default here.
@MackinnonBuck Thanks for the fast response! That sounds like a good idea to change the default to "redirect". Furthermore I was wondering why the LoginMode is a string. Would it be considerable to change it to a enum such as LoginMode.Redirect and LoginMode.Popup. I was just wondering about a string value to select between popup mode and redirect. Maybe an enum would make the use of the API less prone of errors due to capitalization errors, whitespaces and that stuff?
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
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
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.
The text was updated successfully, but these errors were encountered: