Trait distant_auth::AuthHandler
source · pub trait AuthHandler: AuthMethodHandler + Send {
// Provided methods
fn on_initialization<'life0, 'async_trait>(
&'life0 mut self,
initialization: Initialization
) -> Pin<Box<dyn Future<Output = Result<InitializationResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: '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 Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_finished<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Interface for a handler of authentication requests for all methods.
Provided Methods§
sourcefn on_initialization<'life0, 'async_trait>(
&'life0 mut self,
initialization: Initialization
) -> Pin<Box<dyn Future<Output = Result<InitializationResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_initialization<'life0, 'async_trait>( &'life0 mut self, initialization: Initialization ) -> Pin<Box<dyn Future<Output = Result<InitializationResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Callback when authentication is beginning, providing available authentication methods and returning selected authentication methods to pursue.
sourcefn on_start_method<'life0, 'async_trait>(
&'life0 mut self,
start_method: StartMethod
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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 Self: 'async_trait, 'life0: 'async_trait,
Callback when authentication starts for a specific method.