Skip to content

fix(example): enforce sub+sid keying for backchannel logout session index - #53

Open
frederikprijck wants to merge 1 commit into
mainfrom
fix/backchannel-logout-sub-sid-key
Open

fix(example): enforce sub+sid keying for backchannel logout session index#53
frederikprijck wants to merge 1 commit into
mainfrom
fix/backchannel-logout-sub-sid-key

Conversation

@frederikprijck

@frederikprijck frederikprijck commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

  • The OIDC Back-Channel Logout 1.0 spec requires that when both sub and sid are present in the logout token, the RP must match both when identifying the session to end
  • Previously, deleteByLogoutToken in the Redis store example matched only on sid, ignoring sub
  • This fix encodes sub into the session lookup index key (session:<sid>:<sub>), making the cross-check structural rather than a runtime comparison — if the key doesn't exist, neither sid nor sub matched
  • Deletion is now skipped entirely when either claim is absent from the logout token

…ndex

Per the OIDC Back-Channel Logout spec, when both sub and sid are present
in the logout token the RP must match both. Encode sub into the index key
(session:<sid>:<sub>) so the sub cross-check is structural rather than a
runtime comparison, and skip deletion when either claim is absent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant