pub struct MetadataBuilder { /* private fields */ }Expand description
Authorization Server Metadata Builder
Implementations§
Source§impl MetadataBuilder
impl MetadataBuilder
Set authorization endpoint
Sourcepub fn token_endpoint(self, endpoint: String) -> Self
pub fn token_endpoint(self, endpoint: String) -> Self
Set token endpoint
Sourcepub fn scopes_supported(self, scopes: Vec<String>) -> Self
pub fn scopes_supported(self, scopes: Vec<String>) -> Self
Set supported scopes
Sourcepub fn response_types_supported(self, response_types: Vec<String>) -> Self
pub fn response_types_supported(self, response_types: Vec<String>) -> Self
Set supported response types
Sourcepub fn grant_types_supported(self, grant_types: Vec<String>) -> Self
pub fn grant_types_supported(self, grant_types: Vec<String>) -> Self
Set supported grant types
Sourcepub fn token_endpoint_auth_methods_supported(self, methods: Vec<String>) -> Self
pub fn token_endpoint_auth_methods_supported(self, methods: Vec<String>) -> Self
Set supported token endpoint authentication methods
Sourcepub fn code_challenge_methods_supported(self, methods: Vec<String>) -> Self
pub fn code_challenge_methods_supported(self, methods: Vec<String>) -> Self
Set supported PKCE code challenge methods
Sourcepub fn revocation_endpoint(self, endpoint: String) -> Self
pub fn revocation_endpoint(self, endpoint: String) -> Self
Set revocation endpoint
Sourcepub fn introspection_endpoint(self, endpoint: String) -> Self
pub fn introspection_endpoint(self, endpoint: String) -> Self
Set introspection endpoint
Sourcepub fn enable_par(self, endpoint: String, required: bool) -> Self
pub fn enable_par(self, endpoint: String, required: bool) -> Self
Enable PAR (Pushed Authorization Requests)
Set device authorization endpoint
Sourcepub fn enable_dpop(self, signing_algorithms: Vec<String>) -> Self
pub fn enable_dpop(self, signing_algorithms: Vec<String>) -> Self
Enable DPoP support
Sourcepub fn enable_mtls(
self,
mtls_endpoints: MtlsEndpointAliases,
certificate_bound_tokens: bool,
) -> Self
pub fn enable_mtls( self, mtls_endpoints: MtlsEndpointAliases, certificate_bound_tokens: bool, ) -> Self
Enable Mutual TLS support
Sourcepub fn enable_openid_connect(
self,
userinfo_endpoint: String,
subject_types: Vec<String>,
id_token_signing_algs: Vec<String>,
) -> Self
pub fn enable_openid_connect( self, userinfo_endpoint: String, subject_types: Vec<String>, id_token_signing_algs: Vec<String>, ) -> Self
Enable OpenID Connect support
Sourcepub fn build(self) -> AuthorizationServerMetadata
pub fn build(self) -> AuthorizationServerMetadata
Build the metadata
Auto Trait Implementations§
impl Freeze for MetadataBuilder
impl RefUnwindSafe for MetadataBuilder
impl Send for MetadataBuilder
impl Sync for MetadataBuilder
impl Unpin for MetadataBuilder
impl UnwindSafe for MetadataBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more