Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
I have created a Blazor WASM app following the instructions from:
https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/standalone-with-microsoft-entra-id?view=aspnetcore-9.0
I am using net9.0 and latest nuget packages.
For the configuration in wwwroot/appsettings.json I had to change the authority to this format:
"https://{TenantName}.ciamlogin.com/{TenantName}.onmicrosoft.com"
where {TenantName} is the name of my tenant.
When I run locally I can log in and log out successfully. But when I deploy this to Azure SWA, I can log in, but log out results in 404.
The browser url shows:
https://{my-swa-url}.azurestaticapps.net/authentication/logout-callback?state=52244933-59a1-4379-8dc0-e0f9a21db7ff
with page displaying:
404: Not Found
We couldn’t find that page, please check the URL and try again.
How can I resolve the log out issue so it successfully completes and returns user to site?
cc: @guardrex dotnet/AspNetCore.Docs#35421
Expected Behavior
Logout should complete successfully and redirect to home page
Steps To Reproduce
Follow this doc to create the project
https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/standalone-with-microsoft-entra-id?view=aspnetcore-9.0
I am using net9.0 and latest nuget packages.
I am using a Microsoft Entra External ID tenant. So for the configuration in wwwroot/appsettings.json I had to change the authority to this format:
"https://{TenantName}.ciamlogin.com/{TenantName}.onmicrosoft.com"
where {TenantName} is the name of my tenant.
Exceptions (if any)
No response
.NET Version
9.0.203
Anything else?
No response