pub struct AuthorizationServer {Show 16 fields
pub introspection_endpoint: String,
pub authorization_endpoint: String,
pub authorization_response_iss_parameter_supported: bool,
pub client_id_metadata_document_supported: bool,
pub code_challenge_methods_supported: Vec<String>,
pub dpop_signing_alg_values_supported: Vec<String>,
pub grant_types_supported: Vec<String>,
pub issuer: String,
pub pushed_authorization_request_endpoint: String,
pub request_parameter_supported: bool,
pub require_pushed_authorization_requests: bool,
pub response_types_supported: Vec<String>,
pub scopes_supported: Vec<String>,
pub token_endpoint_auth_methods_supported: Vec<String>,
pub token_endpoint_auth_signing_alg_values_supported: Vec<String>,
pub token_endpoint: String,
}Expand description
OAuth 2.0 authorization server metadata from RFC 8414 oauth-authorization-server endpoint.
AT Protocol requires specific grant types, scopes, authentication methods, and security features.
Fields§
§introspection_endpoint: StringURL of the authorization server’s token introspection endpoint (optional).
URL of the authorization server’s authorization endpoint.
Whether the authorization response iss parameter is supported (required for AT Protocol).
client_id_metadata_document_supported: boolWhether client ID metadata document is supported (required for AT Protocol).
code_challenge_methods_supported: Vec<String>PKCE code challenge methods supported, must include “S256” for AT Protocol.
dpop_signing_alg_values_supported: Vec<String>DPoP proof JWT signing algorithms supported, must include “ES256” for AT Protocol.
grant_types_supported: Vec<String>OAuth 2.0 grant types supported, must include “authorization_code” and “refresh_token”.
issuer: StringThe authorization server’s issuer identifier, must match PDS URL.
URL of the authorization server’s pushed authorization request endpoint (required for AT Protocol).
request_parameter_supported: boolWhether the request parameter is supported (optional).
Whether pushed authorization requests are required (required for AT Protocol).
response_types_supported: Vec<String>OAuth 2.0 response types supported, must include “code” for AT Protocol.
scopes_supported: Vec<String>OAuth 2.0 scopes supported, must include “atproto” and “transition:generic” for AT Protocol.
token_endpoint_auth_methods_supported: Vec<String>Client authentication methods supported, must include “none” and “private_key_jwt”.
token_endpoint_auth_signing_alg_values_supported: Vec<String>JWT signing algorithms for client authentication, must include “ES256” for AT Protocol.
token_endpoint: StringURL of the authorization server’s token endpoint.
Trait Implementations§
Source§impl Clone for AuthorizationServer
impl Clone for AuthorizationServer
Source§fn clone(&self) -> AuthorizationServer
fn clone(&self) -> AuthorizationServer
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more