Protocols
Saved & recent

Bearer token

Also called: bearer credential, OAuth bearer token

A bearer token is a credential whose possession is sufficient to use the authority it represents, subject to server validation. The holder need not prove possession of a separate cryptographic key. “Bearer” describes how a token is used; JWT describes a possible token format. An opaque random string can also be a bearer token.

For example, a photo client sends Authorization: Bearer ... when reading an album. Someone who steals that usable token may exercise its allowed access until it expires or is rejected. TLS protects it in transit, while scopes and expiry limit its authority; decoding a JWT does not establish whether it is valid.

Read first
Authentication
Related
OAuth 2.0, JWT, Token revocation
Further reading
IETF RFC 6750 — OAuth 2.0 bearer token usage
opaque format JWT-shaped format <opaque token> header payload signature Authorization: Bearer <token> possession supplies credential server validates token checks album-read permission album read if both pass
Opaque strings and JWTs can both be used as bearer credentials. Possession supplies the credential; the server must still validate it and enforce the limited permission it grants.

View in the full Protocols collection