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 929df70 commit 8eabbdbCopy full SHA for 8eabbdb
src/mcp/shared/auth.py
@@ -47,9 +47,9 @@ class OAuthClientMetadata(BaseModel):
47
# ie: we do not support client_secret_basic
48
token_endpoint_auth_method: Literal["none", "client_secret_post"] = "client_secret_post"
49
# grant_types: this implementation only supports authorization_code & refresh_token
50
- grant_types: list[Literal["authorization_code", "refresh_token"]] = [
+ grant_types: list[Union[Literal["authorization_code", "refresh_token"], str]] = [
51
"authorization_code",
52
- "refresh_token",
+ "refresh_token"
53
]
54
# The MCP spec requires the "code" response type, but OAuth
55
# servers may also return additional types they support
0 commit comments