logo
pub trait BasicAuthValidator: Send + Sync {
    fn validate<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        password: &'life2 str
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
   where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }
Available on crate feature basic-auth only.
Expand description

BasicAuthValidator

Required Methods

Validate is that username and password is right.

Implementors