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

Implement back-channel logout #217

Closed
gluap opened this issue Mar 10, 2022 · 3 comments · Fixed by #218
Closed

Implement back-channel logout #217

gluap opened this issue Mar 10, 2022 · 3 comments · Fixed by #218

Comments

@gluap
Copy link
Contributor

gluap commented Mar 10, 2022

Currently the logout correctly logs out of the OpenBikeSensor portal, but does not invalidate the keycloak login.

Expected behaviour:

  • log in
  • log out via logout on openbikesensor page
  • click login again
  • asked for password and username again

actual behaviour:

  • log in
  • log out via logout
  • click login again
  • logged into last logged in users session WITHOUT being asked for username and password

The problem with this is that there is currently no way for an user to invalidate their session.

This means that for instance when logging in from third party system the next user of that system may be able to access the users data without having to provide credentials.

@opatut
Copy link
Member

opatut commented Mar 10, 2022

There is a possibility of a so-called "backchannel logout" in keycloak, which is exactly this: The application, when ending the user session, sends the user agent to the auth server to terminate the session there as well.

It just needs to be implemented ;)

@opatut opatut changed the title Logout does not work (keycloak session not invalidated) Implement back-channel logout Mar 10, 2022
@gluap
Copy link
Contributor Author

gluap commented Mar 10, 2022

Yeah, I'm currently looking through keycloak documentation.

@opatut
Copy link
Member

opatut commented Mar 10, 2022

It might be that back-channel is actually the wrong name, I might be confused ;) https://openid.net/specs/openid-connect-backchannel-1_0.html

But there is a way ;)

@gluap gluap mentioned this issue Mar 10, 2022
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 a pull request may close this issue.

2 participants