Skip to main content

AuthHandler

Trait AuthHandler 

Source
pub trait AuthHandler:
    Send
    + Sync
    + 'static {
    // Provided methods
    fn auth_none<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _user: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = AuthDecision> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn auth_password<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        _user: &'life1 str,
        _password: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = AuthDecision> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}
Expand description

Handler for SSH authentication methods.

Provided Methods§

Source

fn auth_none<'life0, 'life1, 'async_trait>( &'life0 self, _user: &'life1 str, ) -> Pin<Box<dyn Future<Output = AuthDecision> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handle authentication with no password (none method)

Source

fn auth_password<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _user: &'life1 str, _password: &'life2 str, ) -> Pin<Box<dyn Future<Output = AuthDecision> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Handle password authentication

Implementors§