Skip to main content

protected_resource_metadata

Function protected_resource_metadata 

Source
pub fn protected_resource_metadata(
    resource_url: &str,
    server_url: &str,
    config: &OAuthConfig,
) -> Value
Expand description

Build the Protected Resource Metadata JSON response.

When an OAuth proxy is configured, authorization_servers points to the MCP server itself (the proxy facade). Otherwise it points directly to the upstream issuer.