pub struct SamlConfig {Show 17 fields
pub issuer: String,
pub entry_point: String,
pub cert: String,
pub callback_url: String,
pub acs_url: Option<String>,
pub audience: Option<String>,
pub idp_metadata: Option<SamlIdpMetadata>,
pub sp_metadata: SamlSpMetadata,
pub mapping: Option<SamlMapping>,
pub want_assertions_signed: bool,
pub authn_requests_signed: bool,
pub signature_algorithm: Option<String>,
pub digest_algorithm: Option<String>,
pub identifier_format: Option<String>,
pub private_key: Option<SecretString>,
pub decryption_pvk: Option<SecretString>,
pub additional_params: Option<BTreeMap<String, Value>>,
}Expand description
SAML configuration for an SSO provider.
Fields§
§issuer: StringService provider issuer/entity id expected by the IdP.
entry_point: StringIdP SSO entry point for AuthnRequest redirects.
cert: StringIdP signing certificate, either PEM or base64 body.
callback_url: StringRustAuth callback URL used after SAML login.
acs_url: Option<String>Explicit assertion consumer service URL.
audience: Option<String>Expected SAML audience. Defaults to issuer semantics when omitted.
idp_metadata: Option<SamlIdpMetadata>Parsed or configured IdP metadata.
sp_metadata: SamlSpMetadataService provider metadata configuration.
mapping: Option<SamlMapping>Provider attribute mapping.
want_assertions_signed: boolRequire valid XMLDSig over the SAML Assertion.
authn_requests_signed: boolSign outbound AuthnRequest messages.
signature_algorithm: Option<String>Signature algorithm URI or short name for outbound signed requests.
digest_algorithm: Option<String>Digest algorithm URI or short name for outbound signed requests.
identifier_format: Option<String>SAML NameID format requested from the IdP.
private_key: Option<SecretString>Service provider signing private key. Debug output is redacted.
decryption_pvk: Option<SecretString>Service provider decryption private key for encrypted assertions.
additional_params: Option<BTreeMap<String, Value>>Additional AuthnRequest parameters sent to the IdP.
Trait Implementations§
Source§impl Clone for SamlConfig
impl Clone for SamlConfig
Source§fn clone(&self) -> SamlConfig
fn clone(&self) -> SamlConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SamlConfig
impl Debug for SamlConfig
Source§impl<'de> Deserialize<'de> for SamlConfig
impl<'de> Deserialize<'de> for SamlConfig
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>,
impl Eq for SamlConfig
Source§impl PartialEq for SamlConfig
impl PartialEq for SamlConfig
Source§fn eq(&self, other: &SamlConfig) -> bool
fn eq(&self, other: &SamlConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SamlConfig
impl Serialize for SamlConfig
impl StructuralPartialEq for SamlConfig
Auto Trait Implementations§
impl Freeze for SamlConfig
impl RefUnwindSafe for SamlConfig
impl Send for SamlConfig
impl Sync for SamlConfig
impl Unpin for SamlConfig
impl UnsafeUnpin for SamlConfig
impl UnwindSafe for SamlConfig
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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