Authentication vs authorization
Authentication (AuthN) verifies who you are (identity). Authorization (AuthZ) decides what you can do (permissions). Always authenticate first, then authorize.
System Design & Architecture · 12 sections
AuthN vs AuthZ, sessions, JWT, OAuth 2.1/OIDC, SAML, password security, MFA, service identity, and common auth attacks/gotchas.
Authentication (AuthN) verifies who you are (identity). Authorization (AuthZ) decides what you can do (permissions). Always authenticate first, then authorize.
Identity is the user or account being described; a principal is the acting entity a request is evaluated for (user, service account, device). Terminology varies by platform: OIDC models identity with `sub`, AWS IAM makes the principal the acting user/role, and Kerberos separates a principal from its credentials — confirm the definition a given system uses rather than assuming one identity maps to many principals.
Stateful stores session server-side (easy revocation, needs shared store). Stateless embeds claims in a token (scales horizontally, harder to revoke).
116 more cards in this sheet
Unlock the System Design bundle — ₹399
One-time payment. Unlocks this sheet and 10 other sheets in the bundle, plus a typeset PDF of each.
Unlock the bundle See all bundles
Or get all 76 sheets for ₹999 — one payment, every future sheet included.
What's new and the interview questions people are actually getting asked. No spam.