pub trait AuthenticationMethod: Send + Sync {
    fn id(&self) -> &'static str;
    fn authenticate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        authenticator: &'life1 mut dyn Authenticator
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

Represents an interface to authenticate using some method

Required Methods

Returns a unique id to distinguish the method from other methods

Performs authentication using the authenticator to submit challenges and other information based on the authentication method

Implementors