We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca34666 commit 45a16a8Copy full SHA for 45a16a8
src/mcp/server/auth/handlers/register.py
@@ -68,11 +68,11 @@ async def handle(self, request: Request) -> Response:
68
),
69
status_code=400,
70
)
71
- if set(client_metadata.grant_types) != {"authorization_code", "refresh_token"}:
+ if not {"authorization_code", "refresh_token"}.issubset(set(client_metadata.grant_types)):
72
return PydanticJSONResponse(
73
content=RegistrationErrorResponse(
74
error="invalid_client_metadata",
75
- error_description="grant_types must be authorization_code and refresh_token",
+ error_description="grant_types must contain authorization_code and refresh_token",
76
77
78
0 commit comments