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

logout in example web app doesn't log out #36

Closed
kenkyee opened this issue Jun 20, 2016 · 2 comments
Closed

logout in example web app doesn't log out #36

kenkyee opened this issue Jun 20, 2016 · 2 comments

Comments

@kenkyee
Copy link

kenkyee commented Jun 20, 2016

To reproduce:

  • start example kovert app
  • go to localhost:8080
  • click on login link
  • type in franky/123 for creds as prompted
  • click on logout link
  • click on login link again (it should prompt for a username/password at this point but doesn't)
@apatrida
Copy link
Contributor

It doesn't logout because it uses basic auth, and basic auth does not have a logout. the browser remembers and sends the headers and so logging out a server-side session does nothing.

A more realistic auth handler (JDBC, OAUTH, JWT) would work fine.

@kenkyee
Copy link
Author

kenkyee commented Jun 21, 2016

There is a hack, but I agree using JWT or OAuth would be the right way to do it :-)
http://tuhrig.de/basic-auth-log-out-with-javascript/

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

No branches or pull requests

2 participants