Skip to content

Course

Authentication & Identity Systems

Sessions, cookies, JWT verification, OAuth 2.0 + OIDC + SAML flows, passkeys, and the auth bugs that actually get exploited — mechanism first.

14 lessons

Course Q&A

Keep reading

Related articles from the SudoSecurity blog.

Reviews

Enrolled members can rate this course.

No reviews yet.

Sessions & Cookies

Server-side session state, the cookie flags that bound it, and the fixation/CSRF bugs ambient authority invites.

  1. 01What a Session Really IsA session is server-side state keyed by an opaque cookie value — everything else is plumbing.14mOpen
  2. 02Cookie Flags That Actually MatterHttpOnly, Secure, SameSite, Domain, and __Host- each answer a different question the browser asks before attaching a cookie.15mOpen
  3. 03Fixation, Rotation, ExpiryRotating the session ID at every privilege transition kills fixation; idle and absolute TTLs bound what a stolen ticket is worth.13mOpen
  4. 04CSRF Still WorksSameSite=Lax default killed most ambient-authority CSRF — the same-site boundary, Lax+POST, and GET mutations are the gaps left over.14mOpen

JWTs & Tokens

How signed tokens actually verify, the alg/kid/jku attacks that shipped, and where credentials should live.

  1. 01JWT Anatomy: Signed, Not SecretThree base64url segments, attacker-controlled header metadata, and claims that are checks you're supposed to run — not facts you're given.13mOpen
  2. 02JWT Attacks That Shippedalg confusion, kid injection, and jku SSRF all ship from one defect: the verifier trusting the token's own metadata.15mOpen
  3. 03Where Tokens Live MatterslocalStorage lets any script own the credential forever; an HttpOnly cookie can be ridden but not stolen; the BFF pattern makes the frontend hold nothing.13mOpen
  4. 04Refresh Tokens and RevocationShort-lived access plus rotating, reuse-detected refresh tokens — and the revocation state that 'stateless JWT' can't avoid.15mOpen

OAuth 2.0, OIDC & SAML

The grant that survived, the identity layer on top of it, and the XML enterprise SSO you can't quite kill.

  1. 01OAuth 2.0: The Grants That SurvivedAuthorization code + PKCE is the flow; implicit and password grants died of URL leaks and credential sharing.15mOpen
  2. 02OIDC Is Not OAuthAccess tokens authorize API calls; the ID token's aud and nonce are what actually prove a user authenticated for your client.14mOpen
  3. 03SAML: The XML You Can't AvoidSignature wrapping attacks from 2012 still ship as CVEs, and a stolen IdP signing cert mints identities for everyone.16mOpen

Credentials & Passkeys

Password storage rules that survived the breaches, WebAuthn ceremonies, and the auth bugs that actually burned companies.

  1. 01Password Storage in 2025Argon2id's memory hardness, bcrypt's 72-byte edge, a pepper outside the DB, and NIST 800-63-4's breach-check mandate.15mOpen
  2. 02Passkeys and WebAuthnChallenge-response with per-origin asymmetric credentials ends phishing — synced vs device-bound is the real remaining decision.16mOpen
  3. 03The Auth Bugs That Actually Got ExploitedOkta's HAR files, Microsoft's key-scope confusion, Golden SAML, and stuffing bots — identity material leaks outside the boundary, every time.14mOpen