Pcornel
Identity · Single Sign-On & Federation

Access Token

Cheat sheet · https://pcornel.dk/topic.php?topic=4500

Back to the Topic

Answer

An access token is a short-lived credential an application presents to an API to prove authorization, such as an OAuth 2.0 bearer token, often a JWT with scopes and an expiry.

Remember

  • Access tokens are short-lived bearer credentials.
  • Validate issuer, audience, signature and expiry.
  • Scopes limit what the token allows.

First checks

  • API token validation middleware — signature, aud, exp, scope
  • curl -H 'Authorization: Bearer <token>' <api> — test call
  • Access token lifetime — minutes, not days

Verify in this order

client → access token → API validates aud/scope/exp

Where it usually breaks

First mismatch in identity lifecycle → authenticator/credential → IdP/federation/session → authorization policy → target resource → audit trail; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4500

Confirmation

Confirm action

Continue?