Skip to content
GatewayMarkdown

Revocation

Revoke a token, a session, an app's access, an agent or everything a user holds, and know how fast each kind of API stops accepting it.

A token is good until it expires, unless the realm revokes it first. You can revoke one token, a whole sign-in’s worth, an app’s access to a user, an agent and every agent beneath it, or everything a user holds. The realm refuses a revoked token at once, and so does every enforcement point that keeps up with it: the gateway within one poll of the realm’s revocation feed, ten seconds by default.

The one idea to hold on to: how fast a revocation bites depends on how your API checks tokens. An API that asks the realm, or sits behind the gateway, stops a revoked token within seconds. An API that only checks signatures keeps accepting it until it expires, which is why access tokens live five minutes by default.

CapabilityWhat it gives you
Tokens and sign-insOne token, every token exchanged from it, or a refresh token’s whole family
SessionsA session’s end stops every token that names it
An app’s accessA user takes back an app, and its tokens for them stop
A delegationA user takes back an agent, and every token where it acts for them stops
Agent kill switchKilling or quarantining an agent stops its tokens, the agents beneath it, and every token it acts in
QuarantineA quarantined agent can’t get a token, and the ones it holds stop
Everything a user holdsEvery token and grant a user held before a moment, from a signal or by setting them inactive
Delegation chainsEvery agent in a token’s act chain, and every token it came from, is checked
CapabilityWhat it gives you
How fast revocation takes effectThe gateway refuses a revoked token within one poll, and refuses everything when its list is stale
Revocation feedEvery live revocation, for your own enforcement point to hold