pub struct SessionSecurityPolicy {
pub require_mfa_for_new_devices: bool,
pub require_reauth_for_sensitive_ops: bool,
pub reauth_timeout: Duration,
pub max_risk_score: u8,
pub auto_suspend_suspicious: bool,
pub verify_location_changes: bool,
pub limit_concurrent_sessions: bool,
}Expand description
Session security policy
Fields§
§require_mfa_for_new_devices: boolRequire MFA for new devices
require_reauth_for_sensitive_ops: boolRequire re-auth for sensitive operations
reauth_timeout: DurationTimeout for re-auth requirement
max_risk_score: u8Maximum risk score allowed
auto_suspend_suspicious: boolWhether to auto-suspend suspicious sessions
verify_location_changes: boolWhether to require verification after location change
limit_concurrent_sessions: boolWhether to limit concurrent sessions
Trait Implementations§
Source§impl Clone for SessionSecurityPolicy
impl Clone for SessionSecurityPolicy
Source§fn clone(&self) -> SessionSecurityPolicy
fn clone(&self) -> SessionSecurityPolicy
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 SessionSecurityPolicy
impl Debug for SessionSecurityPolicy
Auto Trait Implementations§
impl Freeze for SessionSecurityPolicy
impl RefUnwindSafe for SessionSecurityPolicy
impl Send for SessionSecurityPolicy
impl Sync for SessionSecurityPolicy
impl Unpin for SessionSecurityPolicy
impl UnwindSafe for SessionSecurityPolicy
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