mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
With autologin (`OIDC_REDIRECTION_ENABLED=true`), clicking Log Out redirected to the OAuth2 server URL (for example the Keycloak base URL `https://id.company.com`), which shows an error page for non-admin users. Added the new optional `OAUTH2_LOGOUT_ENDPOINT` setting: when set to the provider's `end_session_endpoint` (Keycloak example `/realms/<realm>/protocol/openid-connect/logout`), Wekan now performs an OIDC RP-initiated logout that ends the identity provider session and returns the user to Wekan (`ROOT_URL`) via `post_logout_redirect_uri`. When unset, logout behaviour is unchanged, so this is backward compatible. For Keycloak 18+, add your Wekan `ROOT_URL` to the client's *Valid post logout redirect URIs*. See [docs/Login/Keycloak/Keycloak.md](https://github.com/wekan/wekan/blob/main/docs/Login/Keycloak/Keycloak.md). Thanks to zambalee and xet7 ! Fixes #6158