Commit a78316c
committed
fix: include "none" in token_endpoint_auth_methods_supported metadata
The `build_metadata()` function hardcoded `token_endpoint_auth_methods_supported`
to `["client_secret_post", "client_secret_basic"]`, but the registration handler
already supports `token_endpoint_auth_method: "none"` for public clients.
MCP clients like Claude Code follow the metadata to determine supported auth
methods. Without "none" advertised, public client flows break: the client
registers successfully (no client_secret), but then cannot complete the token
exchange because the metadata implies a secret is required.
Also includes "none" in `revocation_endpoint_auth_methods_supported` for
consistency.
Fixes #22601 parent f8d98b6 commit a78316c
File tree
3 files changed
+5
-5
lines changed- src/mcp/server/auth
- tests
- client
- server/fastmcp/auth
3 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1245 | 1245 | | |
1246 | 1246 | | |
1247 | 1247 | | |
1248 | | - | |
| 1248 | + | |
1249 | 1249 | | |
1250 | 1250 | | |
1251 | | - | |
| 1251 | + | |
1252 | 1252 | | |
1253 | 1253 | | |
1254 | 1254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
0 commit comments