-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[BUG] After explicit logout, hit on login, then it is automatically recognized instead of showing the login page #339
Comments
What branch code are you using? |
I direct test url: localhost/5105/account/login throw error KeyNotFoundException: The given key was not present in the dictionary. |
I test it in windows 10 with localdb, VS2017 . click login->logout->login. the login form no represent again. |
That is because the token is still valid and we login automatically with the older token, so it appears again logged with the original user. |
As mentioned in IdentityServer4 Sign-out Document: |
// delete authentication cookie Replace it with: |
Is this problem resolved? |
Asp.Net Identity + Identity server 4 uses a little bit different cookies. Try to use |
wrong action logOff
<form asp-area="" asp-controller="Account" asp-action="LogOff" method="post" id="logoutForm" class="navbar-right">
there is no corresponding action in the controller.
and I run the Identity.Api and logout throw a error from return Redirect(logout?.PostLogoutRedirectUri):
ArgumentException: Value cannot be null or empty.
Parameter name: url
Microsoft.AspNetCore.Mvc.ControllerBase.Redirect(string url)
The text was updated successfully, but these errors were encountered: