part…
Check what stuck.
A random exam drawn from every lesson quiz, and a glossary of every term in the course.
A random exam drawn from every lesson quiz, and a glossary of every term in the course.
MCP revision 2025-11-25 keeps the architecture of 2025-06-18 (OAuth 2.1, the MCP server as resource server, a separate authorization server) and improves three things: how the client identifies itself (Client ID Metadata Documents), how the authorization server is discovered (OpenID Connect Discovery as an alternative), and how much permission is requested (incremental scopes with 401 and 403). It also requires the client to verify PKCE support in the metadata.
In this lesson
| Standard | Level |
|---|---|
| OAuth 2.1 (draft 13) | Mandatory |
| Protected Resource Metadata (RFC 9728) | Mandatory |
| AS Metadata (RFC 8414) | The AS offers this one or OIDC Discovery; the client supports both |
| OpenID Connect Discovery, new | Same as the previous row |
| Client ID Metadata Documents (draft 00), new | Recommended |
| Resource Indicators (RFC 8707) | Mandatory for the client |
| Dynamic Client Registration (RFC 7591) | Optional (previously recommended) |
Two of these are new to MCP:
/.well-known/openid-configuration, the path used by OpenID Connect identity providers. Many existing authorization servers only publish that path (see lesson 3.3).client_id an https URL where the client publishes a JSON document with its name and its redirect_uris; the AS reads it from there. With Dynamic Client Registration every client signed up at every server, which piled up registrations with no control (see lesson 3.6).| Topic | Before (2025-06-18) | Now (2025-11-25) |
|---|---|---|
| Client identification | Dynamic Client Registration recommended | Client ID Metadata Document recommended; registration kept for compatibility |
| AS discovery | OAuth path only | OAuth path, then the OIDC path |
| PKCE check | Not required | If the metadata lacks code_challenge_methods_supported, the client refuses to proceed |
| Which scopes to request | No guidance | The 401 may state them; otherwise, those in the resource metadata |
| Insufficient permission | Not detailed | 403 + insufficient_scope + the scopes; the client re-authorizes |
WWW-Authenticate in the 401 |
Mandatory | Optional: without it, the client tries the .well-known paths |
Instead of asking for every permission up front, the client starts small and asks for more when an operation needs it. The MCP server drives the process with its 401 and 403 responses.
Incremental authorization (step-up) in 2025-11-25
1. 401 with an initial scope
MCP server → Client
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer resource_metadata="https://mcp.example.com/.well-known/oauth-protected-resource",
scope="repo:read"
2. First authorization: read only
User → Authorization server
The user approves repo:read. A small consent screen, no surprises.
3. It works... until it does not
Client → MCP server
Reading goes fine. Then the model wants to create an issue (tools/call create_issue).
4. 403 insufficient_scope
MCP server → Client
HTTP/1.1 403 Forbidden
WWW-Authenticate: Bearer error="insufficient_scope",
scope="repo:read issues:write",
resource_metadata="https://mcp.example.com/.well-known/oauth-protected-resource"
The recommended option: the new scopes plus the ones already granted.
5. Re-authorization
User → Authorization server
The user approves issues:write at that moment, with context.
6. Retry with the new token
Client → MCP server
The issue is created.
Client identification
The spec gives an order of preference for a client that supports several:
client_id_metadata_document_supported.registration_endpoint.AS metadata
/.well-known/oauth-authorization-server or /.well-known/openid-configuration. One of them is enough. The client tries the OAuth path first, then the OpenID Connect one.
Resource metadata
Either the WWW-Authenticate header of the 401 carries the URL in resource_metadata, or the client builds the .well-known path itself: first with the MCP server's path, then at the root.
Scopes in the 403
The other options (where the AS lives, how the MCP server validates the token) are the same as in 2025-06-18 (see lesson 4.6).
resource in the authorization request and in the token request.https URL with a path, and its client_id field equals that same URL.Authorization: Bearer <token> on every request, never in the URL; a missing or invalid token gets a 401.Summary
1. In 2025-11-25, a 401 arrives without a WWW-Authenticate header. What does the client do?
The header becomes optional precisely because this fallback exists.
2. The AS metadata does not include code_challenge_methods_supported. What does a 2025-11-25 client do?
From 2025-11-25 the client must verify PKCE support in the metadata and refuse to continue if it is not advertised.
3. Which client identification option does 2025-11-25 recommend when client and AS have no prior relationship?
CIMD is the recommended option for the common case without a prior relationship; Dynamic Client Registration is kept for compatibility.