NEW
A short-lived credential representing authorization that a client presents to access protected APIs or resources.
DESCRIPTION
An access token conveys the permissions (scopes) a client has to call an API on behalf of a user or service. In OAuth 2.0, authorization servers issue tokens that are typically opaque or JWT-encoded. Tokens should be short-lived, revocable, and bound to audience and scopes to limit risk. APIs validate tokens via signature checks or introspection. Proper storage, rotation, and TLS transport are essential. Access tokens differ from ID tokens (identity assertions) and refresh tokens (to obtain new access tokens).
ALTERNATIVE DEFINITIONS
IETF
An access token is a string representing an authorization issued to the client.
Standards-based definition framing the token as the authorization representation.
Auth0
An access token is a credential that can be used by an application to access an API.
Emphasizes API access with tokens as credentials.
RELATED TERMS
OAuth 2.0 OpenID Connect JWT Scope Claims Token Introspection Token Revocation Proof of Possession
COMPETING TERMS
RELATIONS
- Broader: Token
KNOWLEDGE AREAS
Data Security Software Engineering Data Services
TARGET AUDIENCE
Software Developer Security Architect Cybersecurity Engineer DevOps Engineer Application Administrator Solution Architect
EXTERNAL SOURCES
- Wikipedia - OAuth#Access tokens
- IETF - Bearer Token Usage in OAuth 2.0
- OpenID Foundation - OIDC core spec with token details
- OAuth.com - Developer guide to access tokens
TOP QUESTIONS
What is an Access Token used for?
Clients present access tokens to APIs to prove authorization for specific scopes and resources.
Category: Overview
How long should an Access Token live?
Short lifetimes reduce risk, commonly minutes to an hour. Use refresh tokens or re-authentication to renew.
Category: Best Practices
What’s the difference between an Access Token and an ID Token?
Access tokens grant API access; ID tokens assert user identity and are intended for the client application, not APIs.
Category: Comparison
Are Access Tokens always JWTs?
No. They can be opaque strings or JWTs. JWTs allow self-contained validation; opaque tokens require introspection.
Category: Misunderstanding
How do APIs validate Access Tokens?
By verifying signatures/claims for JWTs or calling the authorization server’s introspection endpoint for opaque tokens.
Category: How-To
What are common mistakes with Access Tokens?
Storing tokens insecurely, overbroad scopes, long lifetimes, and transmitting without TLS are major pitfalls.
Category: Mistakes
What risks are associated with Access Tokens?
Token theft enables unauthorized access until expiry. Mitigate with short lifetimes, audience restrictions, and revocation.
Category: Risk
What is Proof of Possession for an Access Token?
It binds tokens to a key held by the client, reducing replay attacks compared to bearer tokens.
Category: Security
How do scopes relate to an Access Token?
Scopes limit what resources and actions are allowed, enforcing least privilege at the API.
Category: Definition