Skip to content
Insights
Request Services
OAuth 2.1
Cheat sheet · printable · CC BY 4.0

OAuth 2.1 — one-pager

Authorization Code + PKCE flow, key parameters, and 2.1 vs 2.0 deltas — all on one page.

Share

Use your browser print dialog. Set Layout: Landscape for best fit.

askmeidentity · OAuth 2.1 · 2026-05-22

OAuth 2.1 — one-pager

A printable single-page reference for OAuth 2.1: the canonical flow, the parameters that matter, what got removed from 2.0, and the security baseline.

The canonical flow (Authorization Code + PKCE)

  1. 1. Client generates code_verifier (random ≥43 chars) + code_challenge = SHA-256(verifier).
  2. 2. Client → /authorize with response_type=code + client_id + redirect_uri + code_challenge + code_challenge_method=S256 + scope + state.
  3. 3. User authenticates + consents. Authorization server redirects → redirect_uri?code=...&state=...
  4. 4. Client → /token with grant_type=authorization_code + code + redirect_uri + client_id + code_verifier.
  5. 5. Authorization server returns access_token (+ refresh_token if rotated) + id_token (if OIDC).

Required parameters

response_typecodeOnly value accepted in OAuth 2.1
client_idstringRegistered client identifier
redirect_uriabsolute URIMust be exact-match to a registered URI
code_challengeS256 hashPKCE — required even for confidential clients
code_challenge_methodS256plain is NOT allowed in 2.1
stateopaqueCSRF protection, validated on callback
scopespace-separatedOptional but recommended
nonceopaqueRequired for OIDC, prevents token replay

What OAuth 2.1 removed from 2.0

  • ·Implicit Flow (response_type=token) — replaced by Authorization Code + PKCE
  • ·Resource Owner Password Credentials grant (ROPC) — incompatible with MFA + passkeys
  • ·Bearer tokens in query strings — must use Authorization header
  • ·Redirect URI partial matching — exact match only
  • ·"plain" PKCE method — S256 only

Refresh token rules (2.1)

  • ·Rotate on every use (single-use refresh tokens)
  • ·Bind to client when issued to a public client
  • ·Revoke entire chain if reuse detected (refresh-token reuse attack)

When to use which grant

SPA / mobile appAuthorization Code + PKCEPublic client
Server-side web appAuthorization Code + PKCEConfidential client
Service-to-serviceClient CredentialsNo user involved
IoT / CLIDevice Authorization GrantUser auths on a separate device
askmeidentity.com · CC BY 4.0 · Reviewed 2026-05-22
More cheat sheets

All printable references in one place.

See all cheat sheetsStandards explainers

Identity, cybersecurity, and custom software for regulated enterprises. Audit-ready operations from advisory through audit.

Americas HQ

Wilmington, DE

America/New York

India HQ

Hyderabad, TG

Asia/Kolkata

Services
  • IAM Consulting
  • IAM Technologies
  • Custom Software & AI
  • IAM Staffing
  • Request Services
  • Case Studies
Resources
  • All Resources
  • Complete Guide to IAM
  • IAM Frameworks Compared
  • IAM Certification Roadmap
  • IAM API Hub
  • IAM Explainers
  • IAM Vendor Status
  • Release Notes
  • State of Identity
  • State of PAM
  • State of IGA
  • State of CIAM
  • State of AI Agent Identity
  • IAM Salary Benchmark
  • Vendor Pricing Index
  • Year in Review 2026
  • Acquisition Tracker
  • Outage Tracker
  • Identity Incidents
  • Vulnerability Tracker
  • Cheat Sheets
  • Standards Explainers
  • Migration Playbooks
  • Audit Checklists
  • Reference Architectures
  • RFP Templates
  • IAM Anti-Patterns
  • Compliance Crosswalk
  • Market Landscape
  • Awesome IAM
  • IAM Glossary
  • Compliance Frameworks
  • Integration Guides
  • Vendor Alternatives
  • IAM by Industry
  • Salary Lookup
  • Directory
Research & media
  • IAM Compensation 2026
  • Vendor Moves Q3 2026
  • Identity Incidents Q3 2026
  • Vendor Security Posture 2026
  • Vendor Pricing 2026
  • AI Citation Tracker
  • Top 50 IAM Tools 2026
  • Podcast
  • Videos
  • Newsletter
  • Newsletter Archive
  • Embed Widgets
Free tools
  • JWT Decoder
  • JWT Signer
  • SAML Decoder
  • SAML Metadata Diff
  • OAuth Flow Visualizer
  • OIDC Debugger
  • OIDC Discovery Validator
  • PKCE Generator
  • WebAuthn Tester
  • Bearer Token Inspector
  • SCIM Validator
  • Password Entropy
  • IAM RFP Template
  • PAM Vendor Selector
  • Maturity Assessment
  • ROI Calculator
  • TCO Calculator
  • MFA Bypass Risk
  • Audit-Prep Burden
  • Quizzes
Company
  • About
  • Leadership
  • Approach
  • Why Choose Us
  • Partners
  • Press Kit
  • Press Topics
  • Global Presence
  • Locations
  • Insights
  • Now
  • Community
  • Open Roles
  • Submit Resume
  • Training
  • Contact

© 2026 askmeidentity, Inc.. Safeguard your digital frontier.

  • Privacy Policy
  • Terms of Service
  • Accessibility