File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
tests/server/fastmcp/auth Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,7 @@ class AuthSettings(BaseModel):
2828 description = "URL advertised as OAuth issuer; this should be the URL the server "
2929 "is reachable at" ,
3030 )
31- service_documentation_url : AnyHttpUrl | None = Field (
32- None , description = "Service documentation URL advertised by OAuth"
33- )
31+ service_documentation_url : AnyHttpUrl | None = None
3432 client_registration_options : ClientRegistrationOptions | None = None
3533 revocation_options : RevocationOptions | None = None
3634 required_scopes : list [str ] | None = None
Original file line number Diff line number Diff line change 3030 RequireAuthMiddleware ,
3131)
3232from mcp .server .auth .provider import OAuthServerProvider
33- from mcp .server .auth .router import (
33+ from mcp .server .auth .routes import (
3434 AuthSettings ,
3535)
3636from mcp .server .fastmcp .exceptions import ResourceError
@@ -545,7 +545,7 @@ async def handle_sse(request) -> EventSourceResponse:
545545 # Add auth endpoints if auth provider is configured
546546 if self ._auth_provider :
547547 assert self .settings .auth
548- from mcp .server .auth .router import create_auth_routes
548+ from mcp .server .auth .routes import create_auth_routes
549549
550550 required_scopes = self .settings .auth .required_scopes or []
551551
Original file line number Diff line number Diff line change 2626 RefreshToken ,
2727 construct_redirect_uri ,
2828)
29- from mcp .server .auth .router import (
29+ from mcp .server .auth .routes import (
3030 AuthSettings ,
3131 ClientRegistrationOptions ,
3232 RevocationOptions ,
You can’t perform that action at this time.
0 commit comments