Restrict MCP OAuth authorization endpoints to HTTP(S) (#47326)

## What changed

Reject authorization endpoints with schemes other than `http` or `https` before client registration or authorization URL return. Document this constraint for `mcpServer/oauth/login`.

## Testing

Make existing asynchronous tests wait for cleanup: wait for `ThreadIdle` before injecting user input in the guardian cached-score test, and poll for queue consumption before asserting that dispatched items are gone.

GitOrigin-RevId: e5f6b4c5556234c3cc2aa56910486e892c011116
This commit is contained in:
viyatb-oai
2026-09-22 17:31:02 +00:00
committed by copyberry
parent 8a577399c7
commit 2c2a42e65d
4 changed files with 33 additions and 5 deletions
+5
View File
@@ -294,6 +294,11 @@ This is the server's advertised MCP capabilities object, including its `extensio
map. It is null when the connection has not initialized successfully; capabilities
are never inferred from tools or copied from a shared catalog cache.
# MCP OAuth login
`mcpServer/oauth/login` only returns HTTP(S) authorization URLs. Authorization
endpoints with other schemes fail before client registration or URL return.
# Thread rollback
`thread/rollback` has been removed from the API, including its request and response