OAuth token revocation (RFC 7009) #438

Merged
jcoffey-dev merged 1 commits from feat/oauth-revocation into main 2026-11-18 15:55:25 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 71737d31e3 OAuth: revoke access and refresh tokens (RFC 7009)
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 12m46s
/auth/revoke takes an access or refresh token and refuses it from then
on, on every node, until it would have expired. Each account keeps a
list of revoked tokens in the in-memory store; the list is cached with
the account's access token, and a revocation drops that cache entry
cluster-wide. A refresh token is also checked against the store when
redeemed. A token issued to a client is revoked only by that client,
with its secret if it has one; one that doesn't validate is answered
200 as the RFC asks. Both discovery documents list revocation_endpoint.

Closes #427
2026-11-18 01:16:56 -07:00