Skip to main content

Authentication & Identity

Design an identity service that survives a full database dump, add phishing-resistant passkeys to an existing password login, pick the correct OAuth 2.1 grant for web, mobile, machine-to-machine, and device clients, and design a session and token lifecycle where a stolen credential can actually be revoked before it does damage.

0/4
Lesson 01Up next

Authentication Fundamentals & Credential Handling

Hash passwords with a memory-hard KDF plus per-user salt (and a KMS pepper) so a DB dump is useless, layer MFA with SMS as the weak factor, harden account recovery because it is the real attack surface, and stop credential stuffing with breach checks and throttling while never revealing whether an account exists.

medium30 minStart
Lesson 02

Passwordless, Passkeys & WebAuthn/FIDO2

Passkeys replace shared secrets with a device-held private key so the server stores only a useless-to-steal public key, origin binding makes them phishing-resistant where OTP and SMS are not, synced passkeys solve device loss for consumers while device-bound plus attestation suits enterprise, and you roll them out via progressive enrollment alongside passwords.

medium30 min
Lesson 03

OAuth 2.1 & OpenID Connect

OAuth authorizes and OIDC (ID token) authenticates, OAuth 2.1 makes Authorization Code + PKCE mandatory and deletes implicit and password grants, you pick auth-code+PKCE for user apps, client-credentials for M2M, and device flow for TVs/CLIs, and you harden tokens with scopes, audience, state/nonce, and optionally DPoP/mTLS.

hard35 min
Lesson 04

Sessions, Tokens & Token Lifecycle

Pick opaque sessions when instant revocation matters and stateless JWTs when cross-service scale matters, then use the hybrid (short JWT + revocable refresh token) with rotation and reuse detection to kill stolen tokens, keep tokens in HttpOnly/Secure/SameSite cookies or a BFF (never localStorage), and validate JWTs strictly.

hard30 min

Authorization & Tenancy

Choose the right authorization model (RBAC, ABAC, or ReBAC) for a product, enforce it correctly at every trust boundary without falling into IDOR, and design tenant isolation for a B2B SaaS that keeps small self-serve customers cheap while giving regulated enterprises the hard guarantees they demand.

0/2

Encryption & Secrets

Design transport security that authenticates every service-to-service hop with mutual TLS, choose the right granularity of encryption at rest so a stolen database snapshot reveals nothing usable, and stand up a centralized secrets platform that rotates keys without downtime and solves the 'secret zero' bootstrap with workload identity.

0/3

Abuse & Perimeter Defense

Separate L3/L4 volumetric floods from L7 application floods and choose the right control for each, design rate limiting and quotas that shed abuse without denying-of-wallet yourself, stop automated abuse (credential stuffing, fake accounts, card testing) with graduated risk-based friction instead of blunt blocks, and reason about attackers with STRIDE while redesigning a flat network into zero-trust.

0/3

Privacy, Compliance & Audit

Translate regulations (GDPR, SOC 2, HIPAA, PCI-DSS) into concrete architecture instead of legalese, build a data platform that can actually find and erase every copy of one user's PII, design tamper-evident audit trails and a secure build pipeline with no long-lived secrets, and run a breach response for a compromised key without either losing forensic evidence or logging every user out.

0/4