# Token Revocation Propagation

> Revoke a token's rated access path then check every surface that could keep using it, from direct calls to queue workers. Use when tokens, keys or federated credentials support an explicit revocation command whose effects must spread everywhere at once

- Skill: `wsh7ash/token-revocation-propagation` (Agent Skill)
- Install (CLI): `npx get-skill add wsh7ash/token-revocation-propagation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wsh7ash/token-revocation-propagation/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Wsh7Ash (https://skillmd.com/u/wsh7ash)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/wsh7ash/token-revocation-propagation

---


# Token Revocation Propagation

> Revoke a token's rated access path then check every surface that could keep using it, from direct calls to queue workers

**Use when:** tokens, keys or federated credentials support an explicit revocation command whose effects must spread everywhere at once

**Avoid when:** all credentials are transactional sessions with no revocation dimension worth tracking

## Procedure

1. Revoke a token and immediately capture the callback in every surface the token can act from: endpoint, streaming, background and delegated callers.
2. Test the token right after revocation, several minutes later and again across long-lived leases for whichever exists.
3. Check whether the revocation command applies to refresh tokens and subordinate grants or only the access surface.
4. Probe rate limits and monitoring surfaces while revocation propagates, to see whether revoked tokens evade or stick.
5. Confirm signed-URL, webhook and export jobs that were created before revocation honor the revocation at use time.
6. Record propagation timing, because revocation that converges within minutes is a design fact you explain, not an unknown.

## Signals

- The token continues authorizing normal operation calls for several minutes after revocation is confirmed.
- Direct API calls halt but a background or streaming surface keeps consuming the same credential.
- Refresh is honored despite access revocation, so an attacker re-seeds the session with a fresh grant.
- A webhook signed using the same key accepts a callback far after its tokens were revoked.

## Patterns

**1. Revocation**

```text
POST /oauth/revoke tenant_token -> within 10s call /api/me -> 401 attempt check
```

**2. Subsurface**

```text
background worker with cached token -> revocation at t0 still calls at t+5m -> propagation miss
```

**3. Result row**

```text
credential=service-key revoked=t0 direct-call=t+2s=401 stream=t+5m=401 jobs=new-tokens=still-valid
```

## Pitfalls

- Verifying revocation only on the direct surface and declaring the process fully complete.
- Ignoring the revocation propagation timing and reporting an unavoidable convergence lag as an instant anomaly.
- Assuming revocation of access tokens applies to refresh and subordinate token chains without testing each.

## Done when

- Revocation is verified at least three times across all consuming surfaces, with each round recorded in the report.
- Refresh and subordinate grant propagation is tested, and propagation delay is documented with the observed window.

## References

- [RFC 7009 - OAuth token revocation](https://www.rfc-editor.org/rfc/rfc7009)
- [OWASP - session management cheat sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)

