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 45a16a8 commit 037f052Copy full SHA for 037f052
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
# this implementation only supports code; ie: it does not support implicit grants
55
response_types: list[Literal["code"]] = ["code"]
0 commit comments