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
EnablePostSignOutAutoRedirect = true #2670
Conversation
@@ -42,7 +42,12 @@ public async Task<ActionResult> Logout(string returnUrl = "", string returnUrlHa | |||
{ | |||
await HttpContext.SignOutAsync().ConfigureAwait(false); | |||
|
|||
return RedirectSafely(returnUrl, returnUrlHash); | |||
if (HttpContext.User.Identity.AuthenticationType == "Identity.Application") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Identity.Application"
hi @gterdem
This seems to be Identity's cookie scheme. Do we assume that developers are using the identity module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @maliming,
Yes. Since it's redirecting to local domain. But I may be missing any other scenarios where developer is not using identity module.
Please delete LogoutController.cs if not needed. |
Done via #2691. |
Resolves #2519 after when updated account logout is merged.