Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rmartinc
Copy link
Contributor

@rmartinc rmartinc commented Oct 7, 2025

Closes #43218

The token revocation endpoint failed for transient tokens created by the TE. The reason is the same than in previous #42565, the session can be a transient online session in which the sid claim is present but the client session is transient and does not exist. The PR just re-uses the UserSessionUtil.findValidSessionForAccessToken used in other endpoints (user-info or introspection) to retrieve the session and the user. Test added.

Copy link
Contributor

@graziang graziang left a comment

Choose a reason for hiding this comment

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

@rmartinc thanks!

@mposolda mposolda self-assigned this Oct 7, 2025
Copy link
Contributor

@mposolda mposolda left a comment

Choose a reason for hiding this comment

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

@rmartinc @graziang Thanks for the fix and review!

@mposolda mposolda merged commit 4476b44 into keycloak:main Oct 7, 2025
79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot revoke access token generated by Standard Token Exchange

3 participants