Issue 1379 patch - Fix MCP server OAuth not working with Visual Studio Code and others with extra grant_types (#1380)
This commit is contained in:
parent
1940040ac3
commit
9323efad99
1 changed files with 19 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ class OAuthClientMetadata(BaseModel):
|
|||
# ie: we do not support client_secret_basic
|
||||
token_endpoint_auth_method: Literal["none", "client_secret_post"] = "client_secret_post"
|
||||
# grant_types: this implementation only supports authorization_code & refresh_token
|
||||
grant_types: list[Literal["authorization_code", "refresh_token"]] = [
|
||||
grant_types: list[Literal["authorization_code", "refresh_token"] | str] = [
|
||||
"authorization_code",
|
||||
"refresh_token",
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue