BTI Beyond The Interviews

System Design & Architecture · 12 sections

Authentication & Authorization

AuthN vs AuthZ, sessions, JWT, OAuth 2.1/OIDC, SAML, password security, MFA, service identity, and common auth attacks/gotchas.

Premium · preview 119 cards Updated 24 Oct 2026
Free to preview. The first 3 cards and the full outline are below — the rest of this sheet is part of the System Design bundle.

What's inside

Preview — first 3 of 119 cards

Authentication vs authorization

Authentication (AuthN) verifies who you are (identity). Authorization (AuthZ) decides what you can do (permissions). Always authenticate first, then authorize.

Identity vs principal

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 vs stateless auth

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.