Skip to content

Commit d07d77e

Browse files
committed
merge with recent branch
1 parent d0610d1 commit d07d77e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mcp/shared/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class OAuthClientMetadata(BaseModel):
5555
"refresh_token",
5656
"client_credentials",
5757
"token_exchange",
58-
"urn:ietf:params:oauth:grant-type:device_code",
58+
"device_code",
5959
]
6060
] = [
6161
"authorization_code",

tests/server/fastmcp/auth/test_auth_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ async def test_client_registration_with_additional_grant_type(self, test_client:
10091009
client_metadata = {
10101010
"redirect_uris": ["https://client.example.com/callback"],
10111011
"client_name": "Test Client",
1012-
"grant_types": ["authorization_code", "refresh_token", "urn:ietf:params:oauth:grant-type:device_code"],
1012+
"grant_types": ["authorization_code", "refresh_token", "device_code"],
10131013
}
10141014

10151015
response = await test_client.post("/register", json=client_metadata)

0 commit comments

Comments
 (0)