pub struct CredentialsFlow<P: CredentialsProvider, M: UserMapper = ()> { /* private fields */ }Expand description
Orchestrates a direct credentials flow.
Implementations§
Source§impl<P: CredentialsProvider> CredentialsFlow<P, ()>
impl<P: CredentialsProvider> CredentialsFlow<P, ()>
Source§impl<P: CredentialsProvider, M: UserMapper> CredentialsFlow<P, M>
impl<P: CredentialsProvider, M: UserMapper> CredentialsFlow<P, M>
pub fn with_mapper(provider: P, mapper: M) -> Self
pub async fn authenticate( &self, creds: P::Credentials, ) -> Result<(Identity, Option<M::LocalUser>), AuthError>
Auto Trait Implementations§
impl<P, M> Freeze for CredentialsFlow<P, M>
impl<P, M> RefUnwindSafe for CredentialsFlow<P, M>where
P: RefUnwindSafe,
M: RefUnwindSafe,
impl<P, M> Send for CredentialsFlow<P, M>
impl<P, M> Sync for CredentialsFlow<P, M>
impl<P, M> Unpin for CredentialsFlow<P, M>
impl<P, M> UnwindSafe for CredentialsFlow<P, M>where
P: UnwindSafe,
M: UnwindSafe,
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