Support Cursor OAuth client registration (#895)
This commit is contained in:
parent
8276632caa
commit
2bce10bdb1
1 changed files with 16 additions and 16 deletions
|
|
@ -2,7 +2,7 @@ from dataclasses import dataclass
|
|||
from typing import Generic, Literal, Protocol, TypeVar
|
||||
from urllib.parse import parse_qs, urlencode, urlparse, urlunparse
|
||||
|
||||
from pydantic import AnyHttpUrl, BaseModel
|
||||
from pydantic import AnyUrl, BaseModel
|
||||
|
||||
from mcp.shared.auth import (
|
||||
OAuthClientInformationFull,
|
||||
|
|
@ -14,7 +14,7 @@ class AuthorizationParams(BaseModel):
|
|||
state: str | None
|
||||
scopes: list[str] | None
|
||||
code_challenge: str
|
||||
redirect_uri: AnyHttpUrl
|
||||
redirect_uri: AnyUrl
|
||||
redirect_uri_provided_explicitly: bool
|
||||
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ class AuthorizationCode(BaseModel):
|
|||
expires_at: float
|
||||
client_id: str
|
||||
code_challenge: str
|
||||
redirect_uri: AnyHttpUrl
|
||||
redirect_uri: AnyUrl
|
||||
redirect_uri_provided_explicitly: bool
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue