Skip to main content

handle_register

Function handle_register 

Source
pub fn handle_register(proxy: &OAuthProxyConfig, body: &Value) -> Value
Expand description

Handle POST /register - return the pre-configured client_id.

MCP clients call this to discover which client_id to use in the authorization flow. We return the upstream client_id from config and echo back any redirect_uris from the request body (required by the MCP SDK’s Zod validation).