Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(oidc): Align logout behavior with MSC4254 #4674

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zecakeh
Copy link
Collaborator

@zecakeh zecakeh commented Feb 17, 2025

Token revocation was split out from MSC2964 (commit matrix-org/matrix-spec-proposals@c859c0b, section called "Logout initiated from a Matrix client") to MSC4254.

According to MSC4254:

  • OIDC RP-Initiated logout, which allowed to generate a URL to log out the user from the web UI, is now only listed as an alternative.
  • Making a request to revoke a single token is enough to revoke both the access token and the refresh token.

@zecakeh zecakeh requested a review from a team as a code owner February 17, 2025 10:32
@zecakeh zecakeh requested review from poljar and removed request for a team February 17, 2025 10:32
Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.89%. Comparing base (59f9d12) to head (7d47231).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4674      +/-   ##
==========================================
+ Coverage   85.83%   85.89%   +0.05%     
==========================================
  Files         292      291       -1     
  Lines       33661    33632      -29     
==========================================
- Hits        28892    28887       -5     
+ Misses       4769     4745      -24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Token revocation was split out from MSC2964 to MSC4254, and RP-Initiated logout is now mentioned only as an alternative.

Signed-off-by: Kévin Commaille <[email protected]>
The server is supposed to revoke any token associated with the token that we revoke.

Signed-off-by: Kévin Commaille <[email protected]>
@zecakeh zecakeh force-pushed the rm-rp-initiated-logout branch from 76e28df to 7d47231 Compare February 17, 2025 11:41
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