Sign-out fails for a session from the previous identity provider #352

Stängd
öppnade 2026-10-11 12:05:15 +00:00 av supernaut · 0 kommentarer
Ägare

Signing out fails for a session that was started before the identity provider changed.

The portal keeps the id_token from sign-in and sends it as id_token_hint to the provider's end-session endpoint. After the Keycloak cutover (bitborg/bitborg-infra#575), a session from the old provider holds a token issued by auth.bitborg.se. That request is redirected to id.bitborg.se, and Keycloak rejects the foreign hint with an error page.

Seen on prod 2026-10-11: sign-out from a pre-cutover session showed an error. A fresh session signs in and out fine.

  • On sign-out, send id_token_hint only when the stored token's iss equals the current OIDC_ISSUER. Otherwise clear the local session and redirect to the portal home.
  • Test: a session cookie with a foreign iss signs out without calling the end-session endpoint.

Done when: signing out of a session with a foreign issuer clears it without an error page.

Signing out fails for a session that was started before the identity provider changed. The portal keeps the `id_token` from sign-in and sends it as `id_token_hint` to the provider's end-session endpoint. After the Keycloak cutover (bitborg/bitborg-infra#575), a session from the old provider holds a token issued by `auth.bitborg.se`. That request is redirected to `id.bitborg.se`, and Keycloak rejects the foreign hint with an error page. Seen on prod 2026-10-11: sign-out from a pre-cutover session showed an error. A fresh session signs in and out fine. - [ ] On sign-out, send `id_token_hint` only when the stored token's `iss` equals the current `OIDC_ISSUER`. Otherwise clear the local session and redirect to the portal home. - [ ] Test: a session cookie with a foreign `iss` signs out without calling the end-session endpoint. Done when: signing out of a session with a foreign issuer clears it without an error page.
supernaut lade till detta till projektet Bitborg Web 2026-10-11 12:05:35 +00:00
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-web#352
Ingen beskrivning angiven.