Skip to content
Commit f580568a authored by PySTaMbI4's avatar PySTaMbI4
Browse files

fix(security): reject an access token once its shared session is gone



AccessTokenValidator only checked signature/exp/issuer, so a token revoked
via Auth's /revoke kept working everywhere else (Gateway's scope check,
every service's Identity) until its own exp — /revoke had no effect
outside Auth's own /userinfo. It now also requires a live session for the
token's jti in the shared identity_session Redis pool.

SessionWriter gains delete(), the write-side counterpart Auth's
RevokeController needs to actually evict a session instead of only
recording revocation somewhere nothing else reads.

Co-Authored-By: default avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J1o719GZHhprkwyfWFqVKK
parent c5c0a7ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment