Pcornel
Identity · Single Sign-On & Federation

Tokens

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

Back to the Topic

Answer

Tokens in SSO and federation are signed data structures — SAML assertions, ID tokens, access and refresh tokens — that carry identity and authorization between identity provider, client and APIs.

Remember

  • SAML assertions, ID tokens, access tokens and refresh tokens have different purposes.
  • Every token must be validated.
  • Protect tokens in transit and storage.

First checks

  • python3 -c "import jwt,sys;print(jwt.decode(sys.argv[1],options={'verify_signature':False}))" <token> — decode JWT (inspection only)
  • Token lifetimes — exp policy
  • Revocation capability — sessions/refresh tokens

Verify in this order

issuer signs token → client presents → API validates

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=4499

Confirmation

Confirm action

Continue?