pub struct SamlProviderConfig {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 enterprise 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: StringOpenAuth 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 SamlProviderConfig
impl Clone for SamlProviderConfig
Source§fn clone(&self) -> SamlProviderConfig
fn clone(&self) -> SamlProviderConfig
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 SamlProviderConfig
impl Debug for SamlProviderConfig
Source§impl<'de> Deserialize<'de> for SamlProviderConfig
impl<'de> Deserialize<'de> for SamlProviderConfig
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>,
Source§impl PartialEq for SamlProviderConfig
impl PartialEq for SamlProviderConfig
Source§fn eq(&self, other: &SamlProviderConfig) -> bool
fn eq(&self, other: &SamlProviderConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SamlProviderConfig
impl Serialize for SamlProviderConfig
impl Eq for SamlProviderConfig
impl StructuralPartialEq for SamlProviderConfig
Auto Trait Implementations§
impl Freeze for SamlProviderConfig
impl RefUnwindSafe for SamlProviderConfig
impl Send for SamlProviderConfig
impl Sync for SamlProviderConfig
impl Unpin for SamlProviderConfig
impl UnsafeUnpin for SamlProviderConfig
impl UnwindSafe for SamlProviderConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.