question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] After explicit logout, hit on login, then it is automatically recognized instead of showing the login page

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
TarasovNcommented, Nov 13, 2018

Asp.Net Identity + Identity server 4 uses a little bit different cookies. Try to use await HttpContext.SignOutAsync("Identity.Application");

0reactions
BrunoLopescommented, Jun 4, 2018

Is this problem resolved? Because I can make it works! And I think that the turn around solution is not a real option…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redirecting to login page after login caused by attempt ...
If user logs-in into the application, waits until session is expired and then tries to sign-out he arrives to login page. This is...
Read more >
Log out doesn't work and automatically sign in
Hello guys… I am having an issue with the logout part of the app… I am using Google App with Auth0 lock, the...
Read more >
Is it safe to disable VerifyCsrfToken middleware on Login ...
I ended up here because of the "login form expiring" issue. When my users log-out, they are redirected to a page that is...
Read more >
[BUG] Perspective auto logout fails to actually log out of IdP
It auto logs the user “out” in that in the session it shows up as unauthenticated, however it you go to log in...
Read more >
Logout not working, .AspNet.ApplicationCookie is not ...
When I click on logout I am taken to util/logout.aspx however when I navigate back to the main page of our website I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found