You signed in with another tab or window. Reload to refresh your session.
<
8000
span class="js-stale-session-flash-signed-out" hidden>You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Backchannel logout can leave sessions not logged out #55522
The backchannel logout LogoutEndpoint#backchannelLogout currently logs out session following the spec. But there are two scenarios than a session can remain:
When the logout token has sid but no sub and the custom revoke_offline_access is sent with true. In this case the online session is removed (if exists) but when the offline sessions are going to be revoked (backchannelLogoutWithSessionId and logoutOfflineUserSessionByBrokerUserId) they cannot be removed because the user is null and no session is found in offline. This way the offline session is still valid. The removal works if you pass both sid and sub.
Currently only one session is returned for the logout token and the sid in the broker. This is mostly correct but theoretically there can be more than one session per broker sid. One uncommon scenario is that we remove cookies for keycloak (but not for the broker idp) and then we will have a second keycloak session attached to the same broker session id. This scenario is weirder than the first one.
In order to fix both issues we need changes in UserSessionProvider because right now there is no way of retrieving offline session using the broker session if (the only method is getUserSessionByBrokerSessionIdno variant for offline). And this method returns just one session, for problem 2, we need to return a list of sessions.
This issue was originally tracked in the private repository. Migrated by @rmartinc.
Activity