Struct actix_web_security::authentication::ProviderManager [−][src]
pub struct ProviderManager { /* fields omitted */ }
A provider manager can be used to register one or more authentication providers to be executed in a chain (until the authentication on a provider succeeds or fails on all providers). A provider manager is registered in the middleware to execute the authentication process.
Implementations
impl ProviderManager
[src]
impl ProviderManager
[src]pub fn new(providers: Vec<Box<dyn AuthenticationProvider>>) -> ProviderManager
[src]
Constructs a new instance for the given vector of boxed authentication providers.
pub async fn authenticate(
&self,
authentication: &Box<dyn Authentication>
) -> Result<Box<dyn UserDetails>, AuthenticationError>
[src]
&self,
authentication: &Box<dyn Authentication>
) -> Result<Box<dyn UserDetails>, AuthenticationError>
Trait Implementations
impl Clone for ProviderManager
[src]
impl Clone for ProviderManager
[src]fn clone(&self) -> ProviderManager
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for ProviderManager
impl !RefUnwindSafe for ProviderManager
impl Send for ProviderManager
impl Send for ProviderManager
impl Sync for ProviderManager
impl Sync for ProviderManager
impl Unpin for ProviderManager
impl Unpin for ProviderManager
impl !UnwindSafe for ProviderManager
impl !UnwindSafe for ProviderManager
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>,