Trait actix_web_security::authentication::scheme::header_extractor::AuthorizationHeaderExtractor [−][src]
pub trait AuthorizationHeaderExtractor: Send + Sync { #[must_use] fn extract_token<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 HeaderMap
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Authentication>, AuthenticationError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; }
The trait of AuthorizationHeaderExtractor
to be implemented for a specific authentication scheme.
Takes a set of HTTP-Headers from the client request and extracts a token (in form of a boxed Authentication
) from the headers.
Required methods
#[must_use]fn extract_token<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 HeaderMap
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Authentication>, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn extract_token<'life0, 'life1, 'async_trait>(&'life0 self,
request: &'life1 HeaderMap
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Authentication>, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Implementors
impl AuthorizationHeaderExtractor for BasicAuthenticationExtractor
[src]
impl AuthorizationHeaderExtractor for BasicAuthenticationExtractor
[src]fn extract_token<'life0, 'life1, 'async_trait>(
&'life0 self,
headers: &'life1 HeaderMap
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Authentication>, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
headers: &'life1 HeaderMap
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Authentication>, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl<T: for<'b> Deserialize<'b> + Claims> AuthorizationHeaderExtractor for BearerAuthenticationExtractor<T>
[src]
impl<T: for<'b> Deserialize<'b> + Claims> AuthorizationHeaderExtractor for BearerAuthenticationExtractor<T>
[src]fn extract_token<'life0, 'life1, 'async_trait>(
&'life0 self,
headers: &'life1 HeaderMap
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Authentication>, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
headers: &'life1 HeaderMap
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Authentication>, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,