Skip to main content

AuthHeaderProvider

Trait AuthHeaderProvider 

Source
pub trait AuthHeaderProvider: Send + Sync {
    // Required methods
    fn headers<'life0, 'async_trait>(
        &'life0 self,
        ctx: AuthHeaderContext,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<HeaderPair>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn on_auth_error<'life0, 'async_trait>(
        &'life0 self,
        ctx: AuthErrorContext,
    ) -> Pin<Box<dyn Future<Output = Result<AuthErrorAction>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn headers<'life0, 'async_trait>( &'life0 self, ctx: AuthHeaderContext, ) -> Pin<Box<dyn Future<Output = Result<Vec<HeaderPair>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn on_auth_error<'life0, 'async_trait>( &'life0 self, ctx: AuthErrorContext, ) -> Pin<Box<dyn Future<Output = Result<AuthErrorAction>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§