pub enum SessionInvalidationReason {
Logout,
Expired,
UserRequested,
AdministrativeRevoke,
PasswordReset,
PasswordResetByOther,
MfaEnabled,
MfaDisabled,
MfaDisabledByOther,
AuthorityEscalation,
EmergencyRecovery,
TrustEscalation,
}Expand description
Why a session is being invalidated. Drives both the audit
action_type and decisions about whether to clear remembered MFA
or mint a replacement session.
All invalidate_sessions callers pass one of these — the engine
is the single writer of revoked_at. Free-form reasons are not
allowed; doctrine 22 (“centralized invalidation”) in
DESIGN_SYSTEM.md.
Variants§
Logout
Expired
UserRequested
AdministrativeRevoke
PasswordReset
PasswordResetByOther
MfaEnabled
MfaDisabled
MfaDisabledByOther
AuthorityEscalation
EmergencyRecovery
TrustEscalation
Token rotation that accompanies a trust escalation
(Authenticated → Elevated, etc.). The replacement session is
minted as the parent’s child; this revokes the old token.
Implementations§
Trait Implementations§
Source§impl Clone for SessionInvalidationReason
impl Clone for SessionInvalidationReason
Source§fn clone(&self) -> SessionInvalidationReason
fn clone(&self) -> SessionInvalidationReason
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 SessionInvalidationReason
impl Debug for SessionInvalidationReason
Source§impl PartialEq for SessionInvalidationReason
impl PartialEq for SessionInvalidationReason
Source§fn eq(&self, other: &SessionInvalidationReason) -> bool
fn eq(&self, other: &SessionInvalidationReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SessionInvalidationReason
impl Eq for SessionInvalidationReason
impl StructuralPartialEq for SessionInvalidationReason
Auto Trait Implementations§
impl Freeze for SessionInvalidationReason
impl RefUnwindSafe for SessionInvalidationReason
impl Send for SessionInvalidationReason
impl Sync for SessionInvalidationReason
impl Unpin for SessionInvalidationReason
impl UnsafeUnpin for SessionInvalidationReason
impl UnwindSafe for SessionInvalidationReason
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
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§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<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§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