Trait tide_http_auth::Scheme[][src]

pub trait Scheme<User: Send + Sync + 'static> {
    type Request: Any + Send + Sync;
#[must_use]    fn authenticate<'life0, 'life1, 'life2, 'async_trait, S>(
        &'life0 self,
        state: &'life1 S,
        auth_param: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<User>>> + Send + 'async_trait>>
    where
        S: Storage<User, Self::Request> + Send + Sync + 'static,
        S: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn scheme_name() -> &'static str; fn should_401_on_multiple_values() -> bool { ... }
fn should_403_on_bad_auth() -> bool { ... }
fn header_name() -> &'static str { ... } }

Associated Types

Loading content...

Required methods

#[must_use]fn authenticate<'life0, 'life1, 'life2, 'async_trait, S>(
    &'life0 self,
    state: &'life1 S,
    auth_param: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Option<User>>> + Send + 'async_trait>> where
    S: Storage<User, Self::Request> + Send + Sync + 'static,
    S: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

fn scheme_name() -> &'static str[src]

Loading content...

Provided methods

Loading content...

Implementors

impl<User: Send + Sync + 'static> Scheme<User> for BasicAuthScheme[src]

type Request = BasicAuthRequest

impl<User: Send + Sync + 'static> Scheme<User> for BearerAuthScheme[src]

type Request = BearerAuthRequest

Loading content...