Genai Applied
Sign in Get my playbook

Track 15 · Security

15.5 OAuth 2.0 Flows & M2M

25 topics in 4 parts. Use it as a checklist before an interview, or as a map of what to learn next.

  • CCritical
  • HHigh
  • MMedium
  • NNew 2026

01OAuth 2.0 Core7 topics

  • The four actors: resource owner, client, authorization server, resource serverC
  • Scope is a ceiling, not an authorization decisionC
  • Access token vs refresh token — the refresh token is the real credentialC
  • Authorization code: why it exists at allC
  • Front channel vs back channel — the axis that explains every flow and every bugC
  • Client authentication ranked: client_secret → private_key_jwt → tls_client_authH
  • OAuth 2.1 in one line: no implicit, no ROPC, PKCE mandatory, exact redirect URIsM

02The Six Flows10 topics

  • Authorization Code (confidential client) — the delegation baselineC
  • Authorization Code + PKCE — the correct SPA/mobile answerC
  • PKCE protects the CODE, not the TOKEN — it is not an XSS defenceC
  • Backend-for-Frontend: no token in the browser, and the CSRF trade it makesH
  • Client Credentials — no human, app's own authority, usually tenant-wideC
  • Device Authorization Grant, and device-code phishingH
  • On-Behalf-Of / Token Exchange (RFC 8693) — preserving user identity across hopsC
  • Refresh Token flow with rotation and reuse detectionC
  • Implicit and ROPC: why both were removedM
  • Eleven actor questions answered for every flowC

03Human vs Machine-to-Machine5 topics

  • "Is there actually a human involved?" — the first question of any auth reviewC
  • The eight-scenario decision table, including webhooks and CIC
  • Anti-pattern: human authentication used for M2M (MFA-exempt service accounts)C
  • Anti-pattern: M2M identity used for human-initiated actions — the confused deputyC
  • Scheduled agent tasks must re-check the user's CURRENT rightsH

04Drills & Architecture Exercise 9.43 topics

  • Why is client credentials right for some APIs and not others?C
  • SPA storing tokens in localStorage — assess "but we use PKCE"C
  • Voice agent calling a customer's CRM: design and defend the authC

All 53 modules

Practise it

Knowing it is half.
Saying it is the rest.

Run a realistic voice interview with an AI panel in the Interview Room, then read a scored report on every answer.