pub struct OidcConfig {Show 14 fields
pub issuer: String,
pub oauth2_config: OAuth2Config,
pub jwks_uri: String,
pub userinfo_endpoint: String,
pub response_types_supported: Vec<String>,
pub subject_types_supported: Vec<SubjectType>,
pub id_token_signing_alg_values_supported: Vec<Algorithm>,
pub scopes_supported: Vec<String>,
pub claims_supported: Vec<String>,
pub claims_parameter_supported: bool,
pub request_parameter_supported: bool,
pub request_uri_parameter_supported: bool,
pub id_token_expiry: Duration,
pub max_age_supported: Option<Duration>,
}
Expand description
OpenID Connect Provider configuration
Fields§
§issuer: String
Issuer identifier (must be HTTPS URL)
oauth2_config: OAuth2Config
OAuth 2.0 base configuration
jwks_uri: String
JWK Set URI
userinfo_endpoint: String
UserInfo endpoint URI
response_types_supported: Vec<String>
Supported response types
subject_types_supported: Vec<SubjectType>
Supported subject identifier types
id_token_signing_alg_values_supported: Vec<Algorithm>
Supported ID token signing algorithms
scopes_supported: Vec<String>
Supported scopes
claims_supported: Vec<String>
Supported claims
claims_parameter_supported: bool
Whether claims parameter is supported
request_parameter_supported: bool
Whether request parameter is supported
request_uri_parameter_supported: bool
Whether request_uri parameter is supported
id_token_expiry: Duration
ID token expiration time
max_age_supported: Option<Duration>
Maximum age for authentication
Trait Implementations§
Source§impl Clone for OidcConfig
impl Clone for OidcConfig
Source§fn clone(&self) -> OidcConfig
fn clone(&self) -> OidcConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OidcConfig
impl Debug for OidcConfig
Auto Trait Implementations§
impl Freeze for OidcConfig
impl RefUnwindSafe for OidcConfig
impl Send for OidcConfig
impl Sync for OidcConfig
impl Unpin for OidcConfig
impl UnwindSafe for OidcConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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