auth_resolver

Trait AuthResolver

Source
pub trait AuthResolver {
    // Required method
    fn authenticate<'life0, 'async_trait>(
        &'life0 self,
        headers: HeaderMap,
    ) -> Pin<Box<dyn Future<Output = Result<AuthContext, AuthResolverError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn authenticate<'life0, 'async_trait>( &'life0 self, headers: HeaderMap, ) -> Pin<Box<dyn Future<Output = Result<AuthContext, AuthResolverError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§