Skip to content

Commit e3a2b6d

Browse files
committed
Don't use client_credentials by default; fix test
1 parent 4ab922c commit e3a2b6d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/mcp/shared/auth.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ class OAuthClientMetadata(BaseModel):
4747
# supported grant_types of this implementation
4848
grant_types: list[Literal["authorization_code", "client_credentials", "refresh_token"]] = [
4949
"authorization_code",
50-
"client_credentials",
5150
"refresh_token",
5251
]
5352
# this implementation only supports code; ie: it does not support implicit grants

tests/client/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ async def test_token_exchange_request(self, oauth_provider):
246246
redirect_uris=[AnyUrl("http://localhost:3030/callback")],
247247
)
248248

249-
request = await oauth_provider._exchange_token("test_auth_code", "test_verifier")
249+
request = await oauth_provider._exchange_token_authorization_code("test_auth_code", "test_verifier")
250250

251251
assert request.method == "POST"
252252
assert str(request.url) == "https://api.example.com/token"

0 commit comments

Comments
 (0)