Keep site registration page beside OAuth registration
This commit is contained in:
@@ -5569,7 +5569,8 @@ class _MCPDispatch:
|
|||||||
path = scope.get("path", "")
|
path = scope.get("path", "")
|
||||||
if scope["type"] == "http" and (
|
if scope["type"] == "http" and (
|
||||||
path == "/mcp"
|
path == "/mcp"
|
||||||
or path in {"/authorize", "/token", "/register", "/revoke"}
|
or path in {"/authorize", "/token", "/revoke"}
|
||||||
|
or (path == "/register" and scope.get("method") == "POST")
|
||||||
or path.startswith("/.well-known/oauth-")
|
or path.startswith("/.well-known/oauth-")
|
||||||
):
|
):
|
||||||
await _mcp_http_app(scope, receive, send)
|
await _mcp_http_app(scope, receive, send)
|
||||||
|
|||||||
Reference in New Issue
Block a user