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]

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]

Trait Implementations

impl Clone for ProviderManager[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,