Struct actix_web_security::authentication::scheme::bearer::jwt::authentication_provider::JwtAuthenticationProvider [−][src]
pub struct JwtAuthenticationProvider { /* fields omitted */ }The definition of a JwtAuthenticationProvider.
Implementations
impl JwtAuthenticationProvider[src]
impl JwtAuthenticationProvider[src]pub fn new(
user_details_service: Box<dyn JwtUserDetailsService>
) -> JwtAuthenticationProvider[src]
user_details_service: Box<dyn JwtUserDetailsService>
) -> JwtAuthenticationProvider
Constructs an instance of a JwtAuthenticationProvider for a boxed instance of a JwtUserDetailsService
which does the actual data lookup for the authentication.
Trait Implementations
impl AuthenticationProvider for JwtAuthenticationProvider[src]
impl AuthenticationProvider for JwtAuthenticationProvider[src]fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
authentication: &'life1 Box<dyn Authentication>
) -> Pin<Box<dyn Future<Output = Result<Box<dyn UserDetails>, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
authentication: &'life1 Box<dyn Authentication>
) -> Pin<Box<dyn Future<Output = Result<Box<dyn UserDetails>, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Clone for JwtAuthenticationProvider[src]
impl Clone for JwtAuthenticationProvider[src]fn clone(&self) -> JwtAuthenticationProvider[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for JwtAuthenticationProvider
impl !RefUnwindSafe for JwtAuthenticationProviderimpl Send for JwtAuthenticationProvider
impl Send for JwtAuthenticationProviderimpl Sync for JwtAuthenticationProvider
impl Sync for JwtAuthenticationProviderimpl Unpin for JwtAuthenticationProvider
impl Unpin for JwtAuthenticationProviderimpl !UnwindSafe for JwtAuthenticationProvider
impl !UnwindSafe for JwtAuthenticationProviderBlanket Implementations
impl<U> AuthenticationProviderClone for U where
U: 'static + AuthenticationProvider + Clone, [src]
impl<U> AuthenticationProviderClone for U where
U: 'static + AuthenticationProvider + Clone, [src]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 Ttype 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>,