pub struct SamlOptions {
pub enable_in_response_to_validation: bool,
pub allow_idp_initiated: bool,
pub request_ttl: Duration,
pub clock_skew: Duration,
pub require_timestamps: bool,
pub max_response_size: usize,
pub max_metadata_size: usize,
pub enable_single_logout: bool,
pub logout_request_ttl: Duration,
pub want_logout_request_signed: bool,
pub want_logout_response_signed: bool,
pub algorithms: SamlAlgorithmOptions,
}Expand description
Runtime and security options for SAML flows.
Fields§
§enable_in_response_to_validation: boolValidate InResponseTo against stored AuthnRequest state.
allow_idp_initiated: boolAllow IdP-initiated SAML responses without stored request state.
request_ttl: DurationAuthnRequest state lifetime.
clock_skew: DurationAllowed timestamp clock skew.
require_timestamps: boolRequire SAML assertions to include timestamp conditions.
max_response_size: usizeMaximum accepted base64 SAML response size.
max_metadata_size: usizeMaximum accepted IdP metadata XML size.
enable_single_logout: boolEnable SAML single logout endpoints and session lookup state.
logout_request_ttl: DurationPending logout request lifetime.
want_logout_request_signed: boolRequire signed inbound LogoutRequest messages.
want_logout_response_signed: boolRequire signed inbound LogoutResponse messages.
algorithms: SamlAlgorithmOptionsSAML algorithm validation policy.
Trait Implementations§
Source§impl Clone for SamlOptions
impl Clone for SamlOptions
Source§fn clone(&self) -> SamlOptions
fn clone(&self) -> SamlOptions
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 SamlOptions
impl Debug for SamlOptions
Source§impl Default for SamlOptions
impl Default for SamlOptions
Source§impl<'de> Deserialize<'de> for SamlOptions
impl<'de> Deserialize<'de> for SamlOptions
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 SamlOptions
Source§impl PartialEq for SamlOptions
impl PartialEq for SamlOptions
Source§fn eq(&self, other: &SamlOptions) -> bool
fn eq(&self, other: &SamlOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SamlOptions
impl Serialize for SamlOptions
impl StructuralPartialEq for SamlOptions
Auto Trait Implementations§
impl Freeze for SamlOptions
impl RefUnwindSafe for SamlOptions
impl Send for SamlOptions
impl Sync for SamlOptions
impl Unpin for SamlOptions
impl UnsafeUnpin for SamlOptions
impl UnwindSafe for SamlOptions
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<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
Compare self to
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>
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