A reference token is an opaque credential, usually a random string, that carries no claims by itself. When a protected API receives it, the API exchanges it with the identity provider to retrieve the claims needed for authorization. section 25.2
Reference tokens trade self-contained validation for privacy and revocation control:
- Keep claims away from the client, improving privacy compared with tokens whose contents are directly readable. section 25.2
- Allow revocation at the identity provider, unlike self-contained tokens that generally cannot be revoked after issuance. section 25.2
- Require an additional HTTP round trip whenever the API needs to retrieve the claims. section 25.2
