Skip to main content

AuthenticationService

Trait AuthenticationService 

Source
pub trait AuthenticationService: Send + Sync {
    // Required methods
    fn authenticate_http<'life0, 'life1, 'async_trait>(
        &'life0 self,
        headers: &'life1 HashMap<String, String>,
    ) -> Pin<Box<dyn Future<Output = Result<(), ProtocolError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn authenticate_ssh<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        public_key: &'life2 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<(), ProtocolError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Authentication service trait

Required Methods§

Source

fn authenticate_http<'life0, 'life1, 'async_trait>( &'life0 self, headers: &'life1 HashMap<String, String>, ) -> Pin<Box<dyn Future<Output = Result<(), ProtocolError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Authenticate HTTP request

Source

fn authenticate_ssh<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, username: &'life1 str, public_key: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = Result<(), ProtocolError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Authenticate SSH public key

Implementors§