pub trait AuthenticatorSession: Send + Sync {
    // Required methods
    fn evaluate_challenge<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        token: Option<&'life1 [u8]>
    ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, AuthError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn success<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        token: Option<&'life1 [u8]>
    ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait used to represent a user-defined custom authentication.

Required Methods§

source

fn evaluate_challenge<'life0, 'life1, 'async_trait>( &'life0 mut self, token: Option<&'life1 [u8]> ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, AuthError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

To handle an authentication challenge initiated by the server. The information contained in the token parameter is authentication protocol specific. It may be NULL or empty.

source

fn success<'life0, 'life1, 'async_trait>( &'life0 mut self, token: Option<&'life1 [u8]> ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

To handle the success phase of exchange. The token parameters contain information that may be used to finalize the request.

Implementors§