Commit 91b992b
committed
fix: expand OAuth metadata validation to support compliant servers
The OAuthMetadata validation was too restrictive, rejecting valid OAuth 2.0
server configurations that advertise additional authentication methods beyond
the minimum required set.
Changes:
- Allow 'client_secret_basic' in token_endpoint_auth_methods_supported
- Allow 'plain' in code_challenge_methods_supported
This fixes compatibility with MCP servers like Asana (mcp.asana.com) that
advertise support for multiple OAuth authentication methods as allowed by
the OAuth 2.0 specification and MCP specification.
The MCP specification does not restrict which authentication methods servers
can support, only requiring that PKCE is used. These changes ensure the
client can connect to any compliant MCP server regardless of which optional
authentication methods they also support.1 parent 2ca2de7 commit 91b992b
File tree
1 file changed
+2
-2
lines changed1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
0 commit comments