Commit aad9cb7
committed
Fix OAuth merge conflict issues
This commit resolves two critical issues that arose after merging upstream changes:
1. Export missing OAuth providers: Added ClientCredentialsProvider and
TokenExchangeProvider to mcp.client.auth module exports. These providers
are essential for the client credentials and token exchange grant types
that were added in the OAuth support fork.
2. Add redirect_uris validation: Implemented validation to ensure redirect_uris
is provided when authorization_code is in the grant_types. This field is
required for the authorization code flow but optional for client_credentials
and token_exchange flows which don't use redirect URIs.
These fixes ensure all tests pass while maintaining the integrity of the
OAuth extensions including client credentials and token exchange grant types.1 parent 7104629 commit aad9cb7
File tree
2 files changed
+16
-0
lines changed- src/mcp
- client/auth
- server/auth/handlers
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
72 | 84 | | |
73 | 85 | | |
74 | 86 | | |
| |||
0 commit comments