Trait actix_web_security::authentication::scheme::authentication_provider::AuthenticationProvider[][src]

pub trait AuthenticationProvider: AuthenticationProviderClone {
    #[must_use]
    fn authenticate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        authentication: &'life1 Box<dyn Authentication>
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn UserDetails>, AuthenticationError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

An authentication provider executes the authentication for an Authentication object and returns either a object of UserDetails (implementation of the marker trait) or an AuthenticationError.

Required methods

#[must_use]
fn authenticate<'life0, 'life1, 'async_trait>(
    &'life0 self,
    authentication: &'life1 Box<dyn Authentication>
) -> Pin<Box<dyn Future<Output = Result<Box<dyn UserDetails>, AuthenticationError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl AuthenticationProvider for BasicAuthenticationProvider[src]

impl AuthenticationProvider for JwtAuthenticationProvider[src]

Loading content...