KyoMel / Yogyakarta, Indonesia

Term 079079 / 344

ID Tokens (OpenID Connect)

Month
October 2025
Day
3
Source
2025/october-term.md

Definition:

ID Tokens are JSON Web Tokens (JWTs) used in OpenID Connect (OIDC) to provide identity information about an authenticated user. Unlike access tokens (which grant API access), ID tokens contain claims about who the user is—their identity, profile information, and authentication context.

Key Properties:

  • JWT format: Base64-encoded, cryptographically signed
  • Identity proof: Confirms user authentication occurred
  • Claims-based: Contains user attributes (name, email, etc.)
  • Short-lived: Typically expires in 1 hour
  • Client-consumed: Meant for the application, not APIs

Example:

User logs into a web app using Google OAuth

  • User Authentication Flow
1. User clicks "Login with Google"
2. App redirects to Google's authorization server
3. User enters credentials on Google
4. Google redirects back with authorization code
5. App exchanges code for tokens (including ID token)

Keep reading