Skip to content

Commit 1f23248

Browse files
committed
merge with recent branch
1 parent e717dbe commit 1f23248

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/mcp/server/auth/handlers/token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ async def handle(self, request: Request):
248248
case RefreshTokenRequest():
249249
refresh_token = await self.provider.load_refresh_token(client_info, token_request.refresh_token)
250250
if refresh_token is None or refresh_token.client_id != token_request.client_id:
251-
# if token belongs to different client, pretend it doesn't exist
251+
# if token belongs to a different client, pretend it doesn't exist
252252
return self.response(
253253
TokenErrorResponse(
254254
error="invalid_grant",

tests/server/fastmcp/auth/test_auth_integration.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -974,13 +974,10 @@ async def test_client_registration_invalid_grant_type(self, test_client: httpx.A
974974
error_data = response.json()
975975
assert "error" in error_data
976976
assert error_data["error"] == "invalid_client_metadata"
977-
assert (
978-
error_data["error_description"]
979-
== (
980-
"grant_types must be authorization_code and refresh_token "
981-
"or client_credentials or token exchange or "
982-
"client_credentials and token_exchange"
983-
)
977+
assert error_data["error_description"] == (
978+
"grant_types must be authorization_code and refresh_token "
979+
"or client_credentials or token exchange or "
980+
"client_credentials and token_exchange"
984981
)
985982

986983
@pytest.mark.anyio

0 commit comments

Comments
 (0)