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.
In MCP revision 2025-06-18 the MCP server stops issuing tokens and only checks them: it becomes a pure OAuth 2.1 resource server, and a separate authorization server issues the tokens. This lesson covers the standards that arrive with that split (Protected Resource Metadata, RFC 9728, and Resource Indicators, RFC 8707), what changes compared with 2025-03-26, and the two-hop discovery flow.
In this lesson
The authorization mechanism is still OAuth 2.1; what changes is who does what. The MCP server no longer issues tokens: it is only a resource server that checks them. Tokens are issued by an authorization server (AS) that may live somewhere else. As in 2025-03-26, the three paths over HTTP remain valid: no auth, OAuth 2.1, or a custom mechanism (see lesson 4.3).
| Standard | What it solves | Level |
|---|---|---|
| OAuth 2.1 (draft 13) | Same as before: give a client access without handing it permanent credentials | Mandatory |
| Protected Resource Metadata (RFC 9728), new | The client can no longer assume that the MCP server is also the AS | Mandatory (MCP server and client) |
| AS Metadata (RFC 8414) | Where the AS endpoints are; the same JSON as in 2025-03-26, now published by the AS | Mandatory (previously only recommended for the server) |
| Resource Indicators (RFC 8707), new | A token must not be valid on just any server | Mandatory for the client |
| Dynamic Client Registration (RFC 7591) | Registering the client without manual steps, now at the AS | Recommended |
The two new standards answer two different questions:
/.well-known/oauth-protected-resource listing the authorization servers that issue tokens for it (see lesson 3.4).resource parameter, with the MCP server's URL, both when asking for permission and when asking for the token. Without it, a token would be valid on any server, and a malicious server could reuse yours against another one (see lesson 3.7 and lesson 5.2).| Topic | Before (2025-03-26) | Now (2025-06-18) |
|---|---|---|
| Who issues tokens | Usually the MCP server itself | An AS; the MCP server only checks them |
| How the AS is discovered | Assumed to be at the root of the MCP server | The MCP server declares it in its metadata |
401 response |
No requirement on its content | WWW-Authenticate must carry the URL of that metadata |
Default endpoints (/authorize, /token, /register) |
Valid when there is no metadata | Removed |
| Token recipient | Not specified | The client states it with resource; the MCP server must check it |
| Forwarding the received token to another API | Not mentioned | Forbidden: the MCP server must obtain its own token for that API |
Discovery now takes two hops: first the MCP server's own metadata (which names the AS), then the AS metadata (which lists its endpoints).
Complete flow in 2025-06-18
1. Request without a token
MCP client → MCP server
POST /mcp HTTP/1.1
Host: mcp.example.com
2. 401 with a pointer
MCP server → MCP client
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer resource_metadata="https://mcp.example.com/.well-known/oauth-protected-resource"
3. Protected Resource Metadata (RFC 9728)
MCP client → MCP server
{ "resource": "https://mcp.example.com/mcp",
"authorization_servers": ["https://auth.example.com"] }
4. AS metadata (RFC 8414)
MCP client → Authorization server
GET https://auth.example.com/.well-known/oauth-authorization-server returns the endpoints.
5. Registration (if needed)
MCP client → Authorization server
POST to the registration_endpoint returns a client_id.
6. Authorization
User → Authorization server
/authorize with PKCE and resource=https://mcp.example.com/mcp.
7. Token
MCP client → Authorization server
POST /token with the code_verifier and resource returns a token whose audience is the MCP server.
8. Use
MCP client → MCP server
Bearer token on every request.
9. Validation
MCP server (internal step)
The token is valid and was issued for me. How: introspection or JWT (see lesson 2.10).
Put the 2025-06-18 discovery chain in order.
| Where the AS is | How |
|---|---|
| Next to the MCP server | Same host; they are still two distinct roles |
| A separate service | Another host, for example the company's identity provider |
| Several | The resource metadata lists more than one; the client chooses which to use |
The same three options as in 2025-03-26: Dynamic Client Registration, a fixed client_id built into the client, or a client_id the user enters.
The MCP specification requires the server to check that the token is valid and that it was issued for that server, but it does not say how. The two usual approaches, which come from OAuth rather than from the MCP spec, are:
| Option | How it works |
|---|---|
| Introspection | The MCP server asks the AS about each token |
| Signed token (JWT) | The token carries the data and a signature; the MCP server verifies it without asking anyone |
resource in both the authorization request and the token request, even if the AS does not support it.Authorization: Bearer <token> on every request, never in the URL.401.redirect_uri must be localhost or HTTPS.Summary
resource_metadata is mandatory, the default endpoints are gone, and forwarding tokens is forbidden.1. Your MCP server needs to call the GitHub API to fulfil a tool call. It received a valid token from the client. According to 2025-06-18, what does it do?
Token passthrough is forbidden from 2025-06-18: the MCP server acts as a client of the downstream API with its own token (see lesson 5.3).
2. In 2025-06-18, how does the client find out which authorization server protects an MCP server?
The default paths were removed; the MCP server declares its AS in the Protected Resource Metadata, whose URL arrives in the 401.
3. What must the client do if the authorization server does not support the resource parameter?
The client sends resource in both requests even if the AS does not support it.