pub struct OidcProviderConfig {Show 16 fields
pub issuer: String,
pub pkce: bool,
pub client_id: String,
pub client_secret: SecretString,
pub discovery_endpoint: String,
pub authorization_endpoint: Option<String>,
pub token_endpoint: Option<String>,
pub user_info_endpoint: Option<String>,
pub jwks_endpoint: Option<String>,
pub revocation_endpoint: Option<String>,
pub end_session_endpoint: Option<String>,
pub introspection_endpoint: Option<String>,
pub token_endpoint_authentication: Option<TokenEndpointAuthentication>,
pub scopes: Option<Vec<String>>,
pub mapping: Option<OidcProfileMapping>,
pub override_user_info: bool,
}Expand description
OIDC configuration for an enterprise SSO provider.
Fields§
§issuer: StringOIDC issuer URL.
pkce: boolWhether authorization requests should use PKCE.
client_id: StringOAuth/OIDC client id.
client_secret: SecretStringOAuth/OIDC client secret. Debug output is redacted.
discovery_endpoint: StringOIDC discovery document URL.
Explicit authorization endpoint override.
token_endpoint: Option<String>Explicit token endpoint override.
user_info_endpoint: Option<String>Explicit UserInfo endpoint override.
jwks_endpoint: Option<String>Explicit JWKS endpoint override.
revocation_endpoint: Option<String>Optional OAuth token revocation endpoint discovered from the IdP.
end_session_endpoint: Option<String>Optional OIDC end-session endpoint discovered from the IdP.
introspection_endpoint: Option<String>Optional OAuth token introspection endpoint discovered from the IdP.
token_endpoint_authentication: Option<TokenEndpointAuthentication>Token endpoint authentication method.
scopes: Option<Vec<String>>Authorization request scopes.
mapping: Option<OidcProfileMapping>Provider claim mapping.
override_user_info: boolOverride existing RustAuth user fields with mapped OIDC values on login.
Trait Implementations§
Source§impl Clone for OidcProviderConfig
impl Clone for OidcProviderConfig
Source§fn clone(&self) -> OidcProviderConfig
fn clone(&self) -> OidcProviderConfig
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 moreSource§impl Debug for OidcProviderConfig
impl Debug for OidcProviderConfig
Source§impl<'de> Deserialize<'de> for OidcProviderConfig
impl<'de> Deserialize<'de> for OidcProviderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OidcProviderConfig
Source§impl PartialEq for OidcProviderConfig
impl PartialEq for OidcProviderConfig
Source§fn eq(&self, other: &OidcProviderConfig) -> bool
fn eq(&self, other: &OidcProviderConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OidcProviderConfig
impl Serialize for OidcProviderConfig
impl StructuralPartialEq for OidcProviderConfig
Auto Trait Implementations§
impl Freeze for OidcProviderConfig
impl RefUnwindSafe for OidcProviderConfig
impl Send for OidcProviderConfig
impl Sync for OidcProviderConfig
impl Unpin for OidcProviderConfig
impl UnsafeUnpin for OidcProviderConfig
impl UnwindSafe for OidcProviderConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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