Glossary auth/
What is OAuth 2.1?
OAuth 2.1 is an IETF Internet-Draft that consolidates the OAuth 2.0 framework, bearer token usage and later security guidance into one authorization specification, and it is the base of MCP's authorization flow.
Also called: draft-ietf-oauth-v2-1, OAuth 2.1 draft
GET /authorize?response_type=code
&client_id=https://app.example.com/oauth/client-metadata.json
&redirect_uri=http://127.0.0.1:3000/callback
&code_challenge=<BASE64URL(SHA256(code_verifier))>
&code_challenge_method=S256
&resource=https%3A%2F%2Fmcp.example.com
&scope=files:read
&state=<random>
That authorization request shows what OAuth 2.1 and MCP layer onto a classic OAuth 2.0 code flow: a PKCE challenge using S256, and a resource parameter (RFC 8707) that binds the token to one MCP server. The client_id is a Client ID Metadata Document URL, MCP’s preferred way for a client to identify itself.
The draft says it “replaces and obsoletes” RFC 6749 and RFC 6750. Its list of differences from OAuth 2.0 builds PKCE into the authorization code grant, removes the PKCE plain method, requires exact string matching for redirect URIs, omits the implicit and password grants, drops bearer tokens in query strings, and requires refresh tokens for public clients to be sender-constrained or one-time-use.
As of December 6, 2026, OAuth 2.1 has not been published as an RFC; the most recent draft, -17, is dated October 31, 2026. MCP’s authorization spec (version 2026-07-28) cites draft -13 and requires MCP authorization servers to implement OAuth 2.1.
See also: Dynamic client registration · Per-user OAuth · Token passthrough · MCP authorization step by step
Related terms
Dynamic client registration, Least privilege for agents, Per-user OAuth, Token passthrough
Guides that cover OAuth 2.1
- A2A for developers: agent cards, tasks and how it differs from MCP
- Run a remote MCP server: Streamable HTTP, sessions and auth
- MCP explained for developers: hosts, clients, servers and JSON-RPC
- MCP authorization step by step: OAuth 2.1, discovery and PKCE
- MCP server security checklist: what to check before you ship
- stdio vs Streamable HTTP: choosing an MCP transport
- MCP vs REST: why agents don't just call your API
Sources
Changelog
- First published.
Cite this page
Agents for Devs. "What is OAuth 2.1?." Published Dec 6, 2026. https://agentsfordevs.com/glossary/oauth-2-1 - Page: https://agentsfordevs.com/glossary/oauth-2-1
- Markdown version: https://agentsfordevs.com/glossary/oauth-2-1.md
- Reuse: quote or summarize with a link to this page. Reuse terms