OAuth 2.0 roles and flows (authorization code + PKCE, client credentials, device code, refresh), what OAuth 2.1 and the RFC 9700 security BCP changed, OpenID Connect and ID tokens, SSO with OIDC and SAML, MFA methods, passkeys/WebAuthn, API keys, service-to-service and workload identity, token exchange and sender-constrained tokens.
Advanced8 interview questions
OAuth 2.0: the cast
The user never gives the client their password; the client gets a scoped token instead.
Term
Meaning
Scope
permission requested (orders:read, openid email)
Access token
credential to call the API (JWT or opaque)
Refresh token
obtain new access tokens without user interaction
Confidential client
can keep a secret (server-side app)
Public client
can't (SPA, mobile, CLI)
Redirect URI
where the AS sends the user back — must be pre-registered and matched exactly
Authorization code + PKCE
Front channel (redirects) carries only a short-lived code; tokens travel on the back channel.
OAuth 2.1 (still an IETF draft in 2026) consolidates a decade of security lessons; RFC 9700 (Best Current Practice for OAuth 2.0 Security, January 2025) is already published and widely adopted:
PKCE required for authorization code flows.
Exact redirect URI matching.
Implicit and password grants removed.
Bearer tokens never in query strings.
Refresh tokens for public clients must be rotated or sender-constrained (DPoP, RFC 9449, or mTLS-bound tokens, RFC 8705).
Best practices: prefixes for scanning and environment, hash at rest, scopes, multiple keys per account for rotation, last-used tracking, per-key rate limits, revocation, never in URLs or client-side code.
Service-to-service and workload identity
Method
Strength
Notes
Shared static secret / basic auth
weak
leaks, hard rotation
API key per service
moderate
still static
OAuth client credentials (+ private_key_jwt)
strong
short-lived, audience-scoped tokens
mTLS with SPIFFE IDs (service mesh)
strong
automatic rotation, identity in the certificate
Cloud workload identity federation
strong
no long-lived cloud keys
Signed requests (HMAC, AWS SigV4)
strong
integrity + replay protection with timestamps
Interview questions
0 / 8 marked confident
Answer out loud first, then open the model answer. Mark a question confident only when you could explain it to an interviewer without notes.