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

Merged
merged 3 commits into from
Feb 24, 2025

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.93%. Comparing base (25d3999) to head (d0cf1ae).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4674      +/-   ##
==========================================
+ Coverage   85.89%   85.93%   +0.04%     
==========================================
  Files         291      290       -1     
  Lines       33868    33839      -29     
==========================================
- Hits        29091    29080      -11     
+ Misses       4777     4759      -18     

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

@zecakeh zecakeh force-pushed the rm-rp-initiated-logout branch from 76e28df to 7d47231 Compare February 17, 2025 11:41
Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, sorry for the delay. I wanted to test this PR since we don't have integration tests with a real OIDC provider. Can confirm, it works with beta.matrix.org.

I left a small nit and could you please get rid of the merge conflict, then we can merge.

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 7d47231 to d0cf1ae Compare February 24, 2025 13:05
@zecakeh
Copy link
Collaborator Author

zecakeh commented Feb 24, 2025

I rebased on main to solve the conflicts

@poljar poljar enabled auto-merge (rebase) February 24, 2025 13:11
@poljar poljar merged commit 2f3cab4 into matrix-org:main Feb 24, 2025
42 checks passed
@zecakeh zecakeh deleted the rm-rp-initiated-logout branch February 24, 2025 13:21
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.

2 participants