-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Description
Description
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?
Page URL
Content source URL
Document ID
7b99057a-a47c-c1a9-eaa8-4eeb792bed86
Platform Id
84b06c19-f447-5bb3-ac19-89d98dc3165f
Article author
Metadata
- ID: 7b99057a-a47c-c1a9-eaa8-4eeb792bed86
- PlatformId: 84b06c19-f447-5bb3-ac19-89d98dc3165f
- Service: aspnet-core
- Sub-service: blazor
Metadata
Metadata
Assignees
Labels
Type
Projects
Status