pub enum AuthAuditEvent<'a> {
ChallengeIssued {
did: &'a str,
session_id: &'a str,
},
Authenticated {
did: &'a str,
session_id: &'a str,
amr: &'a [String],
acr: &'a str,
},
Refreshed {
did: &'a str,
old_session_id: &'a str,
new_session_id: &'a str,
amr: &'a [String],
acr: &'a str,
},
}Expand description
Events the canonical handlers emit to the backend’s audit
sink. The default AuthBackend::audit impl forwards each
variant to tracing::info!(audit=true) so backends without
a structured audit log get useful output for free.
Variants§
ChallengeIssued
Fired after a successful /auth/challenge. The session
is in ChallengeSent state.
Authenticated
Fired after a successful /auth/authenticate. The
session is now in Authenticated state with amr/acr
populated.
Refreshed
Fired after a successful /auth/refresh. The old
session has been deleted; the new one is Authenticated
at the preserved amr/acr from the old session.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AuthAuditEvent<'a>
impl<'a> RefUnwindSafe for AuthAuditEvent<'a>
impl<'a> Send for AuthAuditEvent<'a>
impl<'a> Sync for AuthAuditEvent<'a>
impl<'a> Unpin for AuthAuditEvent<'a>
impl<'a> UnsafeUnpin for AuthAuditEvent<'a>
impl<'a> UnwindSafe for AuthAuditEvent<'a>
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.