pub struct ExternalAuthProviderDescriptor {Show 13 fields
pub kind: ExternalAuthProviderKind,
pub protocol: ExternalAuthProtocol,
pub display_name: &'static str,
pub description: &'static str,
pub default_scopes: &'static str,
pub issuer_url_required: bool,
pub manual_endpoint_configuration_supported: bool,
pub authorization_url_required: bool,
pub token_url_required: bool,
pub userinfo_url_required: bool,
pub supports_discovery: bool,
pub supports_pkce: bool,
pub supports_email_verified_claim: bool,
}Expand description
Static metadata that describes a provider driver’s capabilities and configuration needs.
Fields§
§kind: ExternalAuthProviderKindProvider kind handled by the driver.
protocol: ExternalAuthProtocolProtocol family used by the driver.
display_name: &'static strHuman-readable provider name.
description: &'static strShort capability summary suitable for admin UI surfaces.
default_scopes: &'static strDefault scopes used when a provider config leaves scopes empty.
issuer_url_required: boolWhether an issuer URL must be supplied by administrators.
manual_endpoint_configuration_supported: boolWhether administrators may manually configure OAuth/OIDC endpoints.
Whether the authorization endpoint is required.
token_url_required: boolWhether the token endpoint is required.
userinfo_url_required: boolWhether the userinfo endpoint is required.
supports_discovery: boolWhether provider discovery is supported.
supports_pkce: boolWhether the authorization flow uses PKCE.
supports_email_verified_claim: boolWhether profile extraction can use an email-verified claim.
Trait Implementations§
Source§impl Clone for ExternalAuthProviderDescriptor
impl Clone for ExternalAuthProviderDescriptor
Source§fn clone(&self) -> ExternalAuthProviderDescriptor
fn clone(&self) -> ExternalAuthProviderDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExternalAuthProviderDescriptor
impl RefUnwindSafe for ExternalAuthProviderDescriptor
impl Send for ExternalAuthProviderDescriptor
impl Sync for ExternalAuthProviderDescriptor
impl Unpin for ExternalAuthProviderDescriptor
impl UnsafeUnpin for ExternalAuthProviderDescriptor
impl UnwindSafe for ExternalAuthProviderDescriptor
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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