pub trait AuthHandler: AuthMethodHandler + Send {
    fn on_initialization<'life0, 'async_trait>(
        &'life0 mut self,
        initialization: Initialization
    ) -> Pin<Box<dyn Future<Output = Result<InitializationResponse>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } fn on_start_method<'life0, 'async_trait>(
        &'life0 mut self,
        start_method: StartMethod
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } fn on_finished<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }
Expand description

Interface for a handler of authentication requests for all methods.

Provided Methods

Callback when authentication is beginning, providing available authentication methods and returning selected authentication methods to pursue.

Callback when authentication starts for a specific method.

Callback when authentication is finished and no more requests will be received.

Implementors