Struct actix_web_security::authentication::scheme::bearer::jwt::header_extractor::BearerAuthenticationExtractor [−][src]
pub struct BearerAuthenticationExtractor<T: for<'b> Deserialize<'b> + Claims> { pub token_decoders: Vec<Box<dyn TokenDecoder<T>>>, }
The definition of a BearerAuthenticationExtractor
. The authentication extractor
extracts the authentication information from the authorization header and decodes
the token to be used in the user authentication using a token decoder.
Fields
token_decoders: Vec<Box<dyn TokenDecoder<T>>>
Implementations
impl<T: for<'b> Deserialize<'b> + Claims> BearerAuthenticationExtractor<T>
[src]
impl<T: for<'b> Deserialize<'b> + Claims> BearerAuthenticationExtractor<T>
[src]pub fn new(
token_decoders: Vec<Box<dyn TokenDecoder<T>>>
) -> BearerAuthenticationExtractor<T>
[src]
token_decoders: Vec<Box<dyn TokenDecoder<T>>>
) -> BearerAuthenticationExtractor<T>
Constructs a new instance for a given vector of boxed TokenDecoder
instances.
Trait Implementations
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,
impl<T: Clone + for<'b> Deserialize<'b> + Claims> Clone for BearerAuthenticationExtractor<T>
[src]
impl<T: Clone + for<'b> Deserialize<'b> + Claims> Clone for BearerAuthenticationExtractor<T>
[src]fn clone(&self) -> BearerAuthenticationExtractor<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for BearerAuthenticationExtractor<T>
impl<T> !RefUnwindSafe for BearerAuthenticationExtractor<T>
impl<T> Send for BearerAuthenticationExtractor<T>
impl<T> Send for BearerAuthenticationExtractor<T>
impl<T> Sync for BearerAuthenticationExtractor<T>
impl<T> Sync for BearerAuthenticationExtractor<T>
impl<T> Unpin for BearerAuthenticationExtractor<T>
impl<T> Unpin for BearerAuthenticationExtractor<T>
impl<T> !UnwindSafe for BearerAuthenticationExtractor<T>
impl<T> !UnwindSafe for BearerAuthenticationExtractor<T>
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,