pub struct OAuthAuthorizationServerMetadata {
pub issuer: String,
pub authorization_endpoint: String,
pub token_endpoint: String,
pub registration_endpoint: Option<String>,
pub client_id_metadata_document_supported: bool,
pub authorization_response_iss_parameter_supported: bool,
pub code_challenge_methods_supported: Vec<String>,
pub token_endpoint_auth_methods_supported: Vec<String>,
pub grant_types_supported: Vec<String>,
pub scopes_supported: Vec<String>,
}Expand description
OAuth authorization server metadata used by the authorization-code flow.
This includes the MCP client-registration capability fields in addition to
the RFC 8414 endpoints needed by OAuthAuthorizationCode.
Fields§
§issuer: StringAS issuer identifier (RFC 8414 §2).
Authorization endpoint.
token_endpoint: StringToken endpoint.
registration_endpoint: Option<String>Dynamic Client Registration endpoint (RFC 7591), when supported.
client_id_metadata_document_supported: boolWhether the AS supports OAuth Client ID Metadata Documents.
RFC 9207 / SEP-2468: AS advertises that it includes iss in
authorization responses. Drives the “absent iss is suspicious”
branch of client-side validation.
code_challenge_methods_supported: Vec<String>PKCE challenge methods supported by the authorization endpoint.
token_endpoint_auth_methods_supported: Vec<String>Client authentication methods supported by the token endpoint.
grant_types_supported: Vec<String>OAuth grant types supported by the authorization server.
scopes_supported: Vec<String>OAuth scopes advertised by the authorization server.
Trait Implementations§
Source§impl Clone for OAuthAuthorizationServerMetadata
impl Clone for OAuthAuthorizationServerMetadata
Source§fn clone(&self) -> OAuthAuthorizationServerMetadata
fn clone(&self) -> OAuthAuthorizationServerMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more