Skip to content

Identify revoked tokens by (iss, jti); give the AP a revocation endpoint - #64

Merged
dickhardt merged 1 commit into
mainfrom
revocation-iss-jti
Aug 6, 2026
Merged

dickhardt merged 1 commit into
mainfrom
revocation-iss-jti

Conversation

@dickhardt

Copy link
Copy Markdown
Owner

Stack 4 of 7. Base: sigkey08-verification-errors (#63). Fixes #59, #60.

A jti is unique only within the namespace of the issuer that minted it. A revocation endpoint receives tokens from many issuers — a resource holds auth tokens from every PS and AS its callers use — so a jti alone does not identify a token unambiguously.

The existing text made the assumption explicit without carrying the issuer that would make it true:

The server identifies the token from the jti and its own records — no token type is needed since the jti is unique within the issuer's namespace.

Changes

  • Revocation requests carry iss and jti, both REQUIRED, and recipients MUST key revocation state by the pair. Request example, 404 condition, and all four scenario bullets updated.
  • Agent provider metadata gains an OPTIONAL revocation_endpoint. Agent tokens are issued by the AP, which was the only role with no way to revoke what it issues — resource, PS, and AS metadata all already had the member.
  • Added the agent-token revocation scenario, and noted that a PS or resource that no longer trusts an agent denies it rather than revoking a token it did not issue.
  • Stated the limit of revocation: auth tokens verify offline, so a holder that no revocation request reaches is bounded by token lifetime alone — one hour for an auth token, five minutes for a resource token.

Scope note

#60 asked for a PS agent-token revocation endpoint. Most of what it wanted already exists — PS metadata has revocation_endpoint and §Token Revocation covers "PS revokes an auth token it issued". The genuine gap was the AP, since agent tokens are the AP's to revoke, so that is what this adds.

Self-revocation is deliberately not included. An agent that wants to stop using a token just stops; revocation exists for parties needing to invalidate a token they do not control.

🤖 Generated with Claude Code

https://claude.ai/code/session_011H2BBgoKc7DqXeme5yT9Ls

@dickhardt
dickhardt changed the base branch from sigkey08-verification-errors to main August 6, 2026 07:31
A jti is unique only within the namespace of the issuer that minted it.
A revocation endpoint receives tokens from many issuers -- a resource
holds auth tokens from every PS and AS its callers use -- so a jti alone
does not identify a token unambiguously. The existing text made the
assumption explicit ("no token type is needed since the jti is unique
within the issuer's namespace") without carrying the issuer that would
make it true.

- Revocation requests carry iss and jti, both REQUIRED, and recipients
  key revocation state by the pair.
- Agent provider metadata gains an OPTIONAL revocation_endpoint. Agent
  tokens are issued by the AP, which was the only role with no way to
  revoke what it issues; the other three already had the member.
- Added the agent-token revocation scenario, and noted that a PS or
  resource that no longer trusts an agent denies it rather than revoking
  a token it did not issue.
- Stated the limit of revocation: auth tokens verify offline, so a
  holder no revocation request reaches is bounded by token lifetime.

Fixes #59
Fixes #60

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_011H2BBgoKc7DqXeme5yT9Ls
@dickhardt
dickhardt force-pushed the revocation-iss-jti branch from 998faab to 3c0618f Compare August 6, 2026 07:33
@dickhardt
dickhardt merged commit af5a941 into main Aug 6, 2026
2 checks passed
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.

Revocation endpoint must identify tokens by issuer + jti, not jti alone

1 participant