-
Notifications
You must be signed in to change notification settings - Fork 10.3k
NavigationManager.NavigateToLogout() stuck on authentication/logout-callback after upgrade to dotnet 8 #53131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same thing here. This seems to work OK for now. if (this.Action == "logout-callback") Task.Delay(1_000).ContinueWith((a) => NavManager.NavigateTo("/")); |
@brandonseydel if this fix works I'd like to try it too. Where do you place this code snippet? |
Migrated back to dotnet 7 and now it works. Also noticed that the nuget Microsoft.AspNetCore.ApiAuthorization.IdenmtityServer has no 8 version, so I assume that there is now something else in place. The documentation on how to secure a web assembly app with identity server also stops at version 7. What I can't find is any guidance on how to migrate my solution, apart from "start a new app and start copying pages over". Surely there must be a better way than starting over ever few versions? |
Same thing here. Also, let me add, I'm using KeyCloak, so it isn't a IdentityServer problem! |
Same issue here. Any workaround or solution? Thank a lot. |
This also looks similar to #49956. |
Thanks for the pointer @halter73. I haven't had a look at this issue since migrating back to .Net 7. |
I was facing the same problem in dotnet 8 blazor wasm project... I did the following steps..
<ItemGroup>
<TrimmerRootAssembly Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication"/>
</ItemGroup>
Reference - #49956 (comment) |
For some reason it was working after I updated nuget packages and switched my app to dotnet 8, but after publishing again today I am getting the issue again. |
Is there an existing issue for this?
Describe the bug
I have a dotnet-hosted blazor wasm project that I have been developing since dotnet 6. Auth is done using duende identity server with locally stored user accounts, based on the way it was done at the time I started the project.
The project was migrated to dotnet 7 about a year ago and was running in production without problems until I recently upgraded it to dotnet 8. After upgrading, the logout process gets stuck at authentication/logout-callback page with the message "processing logout callback...". Manually navigating back to "/" gets things unstuck, but previously the redirection to "/" was happening automatically. Getting stuck on logout is not optimal for the users.
The interesting part is that when I run the app in debug mode on my local environment everything works fine. The problem occurs when the app is hosted in the azure app service.
Auth is configured in the api project in the following way
And in the client the signout code consists of
Here's what it looks like in the hosted app
And here is what it looks like locally
Expected Behavior
NavigationManager.NavigateToLogout() should redirect to another url after successful log out.
Steps To Reproduce
Migrate project with identity stores from dotnet 7 to dotnet 8 and host in azure app service?
Exceptions (if any)
None
.NET Version
8
Anything else?
On azure
Locally
dotnet 8.0.100 with VS 2022
The text was updated successfully, but these errors were encountered: