Trait tide_http_auth::Scheme [−][src]
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]
&'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
[src]
Provided methods
fn should_401_on_multiple_values() -> bool
[src]
fn should_403_on_bad_auth() -> bool
[src]
fn header_name() -> &'static str
[src]
Implementors
impl<User: Send + Sync + 'static> Scheme<User> for BasicAuthScheme
[src]
type Request = BasicAuthRequest
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]
&'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
[src]
impl<User: Send + Sync + 'static> Scheme<User> for BearerAuthScheme
[src]
type Request = BearerAuthRequest
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]
&'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,