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]
#[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,
Implementors
impl AuthenticationProvider for BasicAuthenticationProvider
[src]
impl AuthenticationProvider for BasicAuthenticationProvider
[src]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]
&'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,
impl AuthenticationProvider for JwtAuthenticationProvider
[src]
impl AuthenticationProvider for JwtAuthenticationProvider
[src]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]
&'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,