AuthHandler

Trait AuthHandler 

Source
pub trait AuthHandler: Send + Sync {
    // Required methods
    fn handle_login<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 AppContext,
    ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_logout<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 AppContext,
    ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn handle_login<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 AppContext, ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

处理登录请求

Source

fn handle_logout<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 AppContext, ) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

处理登出请求

Implementors§