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
sourcefn 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,
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,
Performs authentication using the authenticator to submit challenges and other
information based on the authentication method