pub struct InMemoryMfaStore { /* private fields */ }Expand description
Thread-safe in-memory MFA store.
Implementations§
Trait Implementations§
Source§impl Default for InMemoryMfaStore
impl Default for InMemoryMfaStore
Source§impl MfaStore for InMemoryMfaStore
impl MfaStore for InMemoryMfaStore
Source§fn begin_enrollment<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
issuer: &'life2 str,
account_name: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<EnrollmentResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn begin_enrollment<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
issuer: &'life2 str,
account_name: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<EnrollmentResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Begin enrollment: generate and store a
TOTP secret + recovery codes. Read moreSource§fn confirm_enrollment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
totp_code: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn confirm_enrollment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
totp_code: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Complete enrollment by verifying the first
TOTP code. Read moreSource§fn create_challenge<'life0, 'life1, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_challenge<'life0, 'life1, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Issue a
MFA challenge token for the given user after first-factor auth. Read moreSource§fn verify_challenge<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
challenge_token: &'life1 str,
code: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify_challenge<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
challenge_token: &'life1 str,
code: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Verify a challenge token +
TOTP/recovery code and consume the challenge. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for InMemoryMfaStore
impl Freeze for InMemoryMfaStore
impl Send for InMemoryMfaStore
impl Sync for InMemoryMfaStore
impl Unpin for InMemoryMfaStore
impl UnsafeUnpin for InMemoryMfaStore
impl UnwindSafe for InMemoryMfaStore
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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