Skip to content
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

Merged
merged 6 commits into from Jan 21, 2020
Merged

Conversation

gterdem
Copy link
Member

@gterdem gterdem commented Jan 17, 2020

Resolves #2519 after when updated account logout is merged.

@ismcagdas ismcagdas added this to the 2.1 milestone Jan 18, 2020
@@ -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")
Copy link
Member

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?

Copy link
Member Author

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.

@hikalkan hikalkan merged commit fb7b04a into abpframework:dev Jan 21, 2020
@hikalkan hikalkan modified the milestones: 2.1, 2.0.1 Jan 21, 2020
@hikalkan
Copy link
Member

Please delete LogoutController.cs if not needed.

@gterdem
Copy link
Member Author

gterdem commented Jan 21, 2020

Done via #2691.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EnablePostSignOutAutoRedirect = true
4 participants