mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-12-05 05:43:36 -05:00
Add a store-backed record of verified backchannel logouts. A marker holds the iat of the logout token as a cutoff, for a session or, if the logout token has no sid, for a subject. A token is covered if it belongs to the marked session or subject and was issued at or before the cutoff. Tokens issued later stay valid. Keycloak keeps issuing tokens with the same sid to a client with an offline token after a logout, and reuses the sid for a new login after a consent revocation, so a plain session marker would lock those clients out until it expires. Using the iat of the logout token means both timestamps come from the IDP clock, and replaying a logout token cannot change the cutoff.