A product login needs a standardized way to verify a user’s identity and convey the authentication result to the client.
Authorization is a separate question: what may a client access?
OAuth 2.0 (RFC 6749) is an authorization framework. A client obtains an access token to request access to a protected resource.
OAuth itself does not standardize user login to the client.
Treating these as one decision can lead to tokens being used by the wrong component.
OpenID Connect Core 1.0 adds an identity layer on top of OAuth 2.0.
It lets a client verify an end-user’s identity based on authentication by the OpenID Provider and receive identity claims.
An access token’s represented principal depends on the authorization context.
A JWT (RFC 7519) carries claims in a defined format. That format alone does not establish the token’s purpose or intended recipient.
OIDC specifies JWTs for ID tokens. OAuth access tokens may use other formats.
RFC 6749 describes an access token as a string and permits different formats.
The core specification does not mention JWT. RFC 9068 defines a separate profile for JWT-formatted OAuth access tokens.
Key Takeaway: OAuth obtains access. OIDC standardizes sign-in. JWT describes format, not purpose.
Send each token only to its intended recipient, and validate it according to its role.
Explore further with Mezu →