Securityintrospection endpointRFC 7662opaque token

Token introspection

Definition

Token introspection (RFC 7662) is an endpoint where a resource server posts a token and receives its state: active, plus claims such as sub, scope, aud and exp.

In practice

Introspection lets APIs use opaque tokens that reveal nothing to clients, and gives instant revocation: a token revoked a second ago is reported inactive. It suits high-risk operations such as payments or admin actions, where stale claims are unacceptable.

Every introspected request depends on the authorization server's latency and availability, which turns it into a shared bottleneck and single point of failure. Caching results for a short time cuts the load but brings back a revocation delay. Many systems verify JWTs locally for most calls and introspect only sensitive ones.

Example

The payments API posts the bearer token to /oauth/introspect and gets {"active":true,"sub":"u_123","scope":"payments:write"} before charging a card, caching the answer for 30 seconds.