-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Logging out of OpenID Connect provider #14270
Comments
I didn't realise that there were specs for this - but: https://medium.com/@robert.broeckelmann/openid-connect-logout-eccc73df758f https://curity.io/resources/architect/openid-connect/openid-connect-logout/ may be helpful for implementation. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Perhaps the simplest way to implement this is to use the RP Initiated Logout spec |
Hi, |
Also miss this feature. And adding |
@qworkz11 A workaround which could work: Change the data-url in gitea/templates/base/head_navbar.tmpl Line 188 in 4fd9c56
of your local gitea to EDIT - my fault: that does not work as the gitea cookies persist. perhaps it works with editing the logout handler gitea/routers/web/events/events.go Line 93 in 368743b
with something like
But i don't know how to edit this on a local machine. |
I decided to enhance and polish my basic implementation, which I was using for private purposes. It actually took quite a bit of time, since the Gitea code wasn't as ready for this as I first thought. Also there are always quite many error cases and action paths to take care of when implementing SLO. I think the code should be on review level now, so any additional testing is appreciated. Please note that there's one database migration, so I don't recommend testing on production databases before the pull request gets merged. |
Description
If you login to Gitea using an OpenID Connect provider (e.g., Keycloak) and logout again, you are logged out of Gitea, but you are still logged in at your OpenID provider. Clicking at the OpenID login button at the Gitea page will automatically log you back into the same account. It should be possible to also log out at the OpenID provider. Keycloak, as an example, provides a logout endpoint where you can logout from the OpenID provider and redirect back to the application, which could be used by Gitea when logging out (e.g., https://your-keycloak.com/auth/realms/example-realm/protocol/openid-connect/logout?redirect_uri=https%3A%2F%2Fyour-gitea.com%2F).
Related issue in past: #12374
The text was updated successfully, but these errors were encountered: