Q26: What is OAuth 2.0 Token Introspection (RFC 7662)?

Difficulty:AdvancedTopic:OAuth Specifications

Token Introspection defines an RFC-standardized HTTP POST protocol enabling Resource Servers to query the Authorization Server to check the active status and meta-claims of an incoming access token.

It is mandatory when using Opaque Access Tokens and optional when Resource Servers require real-time revocation verification for JWTs.

RFC 7662 Introspection Request and Response
// POST /introspect HTTP/1.1
// Host: auth.example.com
// Authorization: Basic YXBpX3NlcnZlcjpzZWNyZXQ=
// Content-Type: application/x-www-form-urlencoded

// token=opaque_token_string_8891

// Introspection JSON Response:
{
  "active": true,
  "scope": "read write",
  "client_id": "app_client_123",
  "sub": "usr_99812",
  "exp": 1776000000
}

The resource server submits the token string to the authorization server to confirm validity and retrieve associated scopes.

Key Takeaways
  • Introspection allows resource servers to validate opaque tokens dynamically.

  • Introduces network latency overhead on API calls compared to local JWT public key verification.