Skip to main content

AuthInjector

Trait AuthInjector 

Source
pub trait AuthInjector:
    Send
    + Sync
    + Debug {
    // Required method
    fn inject<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 mut Request,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Mutates an outbound request with authentication material.

Required Methods§

Source

fn inject<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 mut Request, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Adds auth headers or cookies to request.

Implementors§