OAuth & OpenID Connect
Go deep on grants, endpoints, metadata, tokens, claims, DPoP, PAR, RAR, logout, and the threats they address.
15 articlesStart with the foundationsOAuth 2.0 in plain language
Understand delegated API access, the main actors, and the role of access tokens.
Grant types, client types, and client authentication
Choose the right OAuth grant, understand public and confidential clients, and compare client authentication methods.
Authorization server endpoints
A reference to the authorize, token, introspection, revocation, UserInfo, JWKS, PAR, device, registration, and logout endpoints.
Discovery, metadata, and dynamic registration
Authorization server metadata, OpenID discovery, Protected Resource Metadata (RFC 9728), and dynamic client registration.
OpenID Connect and application sign-in
Learn what the identity layer adds to OAuth and why an ID token differs from an access token.
OpenID Connect in depth
Flows, scopes, request parameters, the UserInfo endpoint, subject types, and the four logout mechanisms.
Token claims reference
Registered JWT claims, ID token claims, access token claims, standard user claims, and confirmation and delegation claims.
JWT and token validation
Read a JSON Web Token's structure and apply the checks that decide whether a token can be trusted.
Self-contained and opaque tokens
Compare by-value and by-reference access tokens, their trade-offs, and hybrid patterns such as the phantom token.
Protecting an API as a resource server
Accept bearer and DPoP tokens, validate them, return standard errors, request step-up authentication, and publish metadata.
DPoP — sender-constrained tokens
How Demonstrating Proof of Possession binds tokens to a client key, with proof structure, nonces, errors, and trade-offs.
PAR and JAR — protecting the authorization request
Push authorization requests to the server (RFC 9126) and sign them as JWTs (RFC 9101) for integrity, confidentiality, and early validation.
Rich Authorization Requests (RAR)
Express fine-grained, structured permissions with authorization_details when scopes are not enough.
Advanced OAuth
Device flow, token exchange, mutual TLS, CIBA, JWT bearer grants, OAuth 2.1, and FAPI — and where to read about DPoP, PAR, and RAR.
OAuth and OIDC threats and mitigations
The attacks described in the OAuth Security BCP and the controls that prevent them.