Skip to main content

authorization_server_metadata

Function authorization_server_metadata 

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

Build the Authorization Server Metadata JSON response (RFC 8414).

Returned at GET /.well-known/oauth-authorization-server so MCP clients can discover the authorization and token endpoints.