ID Token
Cheat sheet · https://pcornel.dk/topic.php?topic=4501
Answer
An ID token is an OpenID Connect JWT that tells the client who the user is and how they authenticated, with claims like sub, iss, aud and exp. It is for the client, not for calling APIs.
Remember
- ID tokens are for the client, not for APIs.
- Contains sub, iss, aud, exp and auth time.
- Validate nonce to stop replay.
First checks
- ID token claims: iss, aud, exp, iat, nonce, sub — required checks
curl -s <jwks_uri>— keys- Client validation library — maintained
Verify in this order
IdP → ID token → client validates → user session
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=4501