ID Token
An ID token is a piece of data issued after a user signs in that serves as proof the user was authenticated. It was introduced by OpenID Connect, an authentication standard, and is intended to be read by the application that requested the sign-in. It typically carries basic information about the user, such as an identifier and, depending on configuration, attributes like name or email.
An ID token is a security artifact defined by OpenID Connect (which layers authentication on top of OAuth 2.0) that represents the outcome of an authentication event and is intended for consumption by the OIDC client (relying party) rather than for authorizing access to a resource server (a role served by access tokens). It is a JSON Web Token (JWT) whose payload consists of claims about the authenticated user and the authentication event. Per OpenID Connect Core 1.0, the required claims typically include iss (issuer), sub (subject identifier), aud (audience), exp (expiration), and iat (issued-at), with nonce required in certain flows; additional claims such as name or email may be present depending on scopes and configuration. Note that a JWT-based ID token is typically signed for integrity and authenticity, which is distinct from being encrypted for confidentiality; encryption is optional and deployment-dependent. Validation of an ID token (signature, issuer, audience, expiry, and nonce where applicable) is a runtime concern for the client and is out of scope for this definition beyond noting its necessity.
Why it matters
The ID token is the artifact that answers the question "was this user authenticated, and by whom?" It is the point where OpenID Connect delivers on its purpose as an authentication layer over OAuth 2.0. Because it is intended for the OIDC client (the relying party) rather than a resource server, it lets an application establish a local session based on a trustworthy statement about an authentication event, rather than inferring identity from an access token that was never designed to carry that meaning. Conflating the two is a common and consequential mistake: using an access token as proof of authentication, or forwarding an ID token to a resource server as if it were an authorization credential, breaks the intended trust boundaries of the protocol.
Who it's relevant to
Inside ID Token
Common questions
Answers to the questions practitioners most commonly ask about ID Token.
