Skip to main content

ID token and access token

OpenID Connect issues two kinds of JSON Web Token. They look alike and serve different purposes.

ID tokenAccess token
AnswersWho is the member?What may the member access?
PurposeProof of authentication for the client applicationAuthorization to call protected resources and APIs
ContentIdentity claims: unique identifier (sub), name, e-mail, and any configured custom attributePermissions: roles and the scopes requested by the client
Read byThe client applicationThe resource server, which validates it on each request
LifetimeShortUsually a little longer, renewable with a refresh token

The ID token does not grant access to protected resources. The access token is meant for resource servers and should not be used by the client as a source of identity.

In Open ENT, the member's classes and organizations are added to both tokens. See Token attributes and Scopes.