Skip to content
Insights
Request Services
Explainer

Access token vs ID token.

An ID token is an OIDC authentication artifact — a JWT that proves who the user is, intended for the client application that requested the login. An access token is an OAuth authorization artifact — a credential that grants scoped access to an API (resource server). The ID token is about identity; the access token is about access. They have different audiences and must not be used interchangeably.

Side by side

ID token vs Access token.

DimensionID tokenAccess token
SpecOpenID ConnectOAuth 2.0 / 2.1
Audience (aud)The client appThe API / resource server
PurposeProve who the user isGrant scoped access
FormatAlways a JWTJWT or opaque string
Sent toConsumed by the app itselfSent to APIs as a bearer / DPoP credential
Inspect forsub, name, email, auth_timescope, aud, exp

The bug this prevents

The single most common OAuth/OIDC integration mistake is sending the ID token to an API as proof of permission, or authorizing API calls by reading ID-token claims. The ID token is for the client app — it answers "who logged in?" It is not an API access credential. APIs must be called with the access token, and the API must validate the access token's audience and scopes.

If your backend accepts an ID token as a bearer credential, an attacker who obtains an ID token (which is often less protected, since it is "just identity") can call your APIs. Keep the tokens in their lanes.

  • App reads the ID token to know who the user is.
  • App sends the access token to call APIs.
  • API validates the access token: signature, aud, exp, and required scope.
  • Never authorize an API request from ID-token claims.
FAQ

Common questions.

  • Can I send the ID token to my API?+

    No. The ID token's audience is your client application, not your API. Send the access token to APIs. An API that accepts ID tokens as credentials has an authorization vulnerability.

  • Why is my access token opaque while my ID token is a JWT?+

    ID tokens are always JWTs because the client must read their claims. Access tokens may be JWTs or opaque strings — opaque tokens are validated by introspection against the authorization server, which keeps token internals private from the client.

Related
  • OAuth vs OIDC
  • Authentication vs authorization
  • JWT (glossary)
  • JWT decoder
Go deeper

The whole picture, in one place.

This explainer is part of our complete guide to IAM — authentication, authorization, governance, privileged access, the standards, and how to run a program.

Complete guide to IAMAll explainers

Identity, cybersecurity, and custom software for regulated enterprises. Audit-ready operations from advisory through audit.

Americas HQ

Wilmington, DE

America/New York

India HQ

Hyderabad, TG

Asia/Kolkata

Services
  • IAM Consulting
  • IAM Technologies
  • Custom Software & AI
  • IAM Staffing
  • Request Services
  • Case Studies
Resources
  • All Resources
  • Complete Guide to IAM
  • IAM Frameworks Compared
  • IAM Certification Roadmap
  • IAM API Hub
  • IAM Explainers
  • IAM Vendor Status
  • Release Notes
  • State of Identity
  • State of PAM
  • State of IGA
  • State of CIAM
  • State of AI Agent Identity
  • IAM Salary Benchmark
  • Vendor Pricing Index
  • Year in Review 2026
  • Acquisition Tracker
  • Outage Tracker
  • Identity Incidents
  • Vulnerability Tracker
  • Cheat Sheets
  • Standards Explainers
  • Migration Playbooks
  • Audit Checklists
  • Reference Architectures
  • RFP Templates
  • IAM Anti-Patterns
  • Compliance Crosswalk
  • Market Landscape
  • Awesome IAM
  • IAM Glossary
  • Compliance Frameworks
  • Integration Guides
  • Vendor Alternatives
  • IAM by Industry
  • Salary Lookup
  • Directory
Research & media
  • IAM Compensation 2026
  • Vendor Moves Q3 2026
  • Identity Incidents Q3 2026
  • Vendor Security Posture 2026
  • Vendor Pricing 2026
  • AI Citation Tracker
  • Top 50 IAM Tools 2026
  • Podcast
  • Videos
  • Newsletter
  • Newsletter Archive
  • Embed Widgets
Free tools
  • JWT Decoder
  • JWT Signer
  • SAML Decoder
  • SAML Metadata Diff
  • OAuth Flow Visualizer
  • OIDC Debugger
  • OIDC Discovery Validator
  • PKCE Generator
  • WebAuthn Tester
  • Bearer Token Inspector
  • SCIM Validator
  • Password Entropy
  • IAM RFP Template
  • PAM Vendor Selector
  • Maturity Assessment
  • ROI Calculator
  • TCO Calculator
  • MFA Bypass Risk
  • Audit-Prep Burden
  • Quizzes
Company
  • About
  • Leadership
  • Approach
  • Why Choose Us
  • Partners
  • Press Kit
  • Press Topics
  • Global Presence
  • Locations
  • Insights
  • Now
  • Community
  • Open Roles
  • Submit Resume
  • Training
  • Contact

© 2026 askmeidentity, Inc.. Safeguard your digital frontier.

  • Privacy Policy
  • Terms of Service
  • Accessibility