Skip to main content

AuthProvider

Trait AuthProvider 

Source
pub trait AuthProvider: Send + Sync {
    // Required methods
    fn authenticate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        client: &'life1 Client,
    ) -> Pin<Box<dyn Future<Output = Result<(), YfCommonError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn get_crumb(&self) -> Option<String>;
    fn is_authenticated(&self) -> bool;
    fn clear_credentials(&self);
}
Expand description

Authentication provider trait

Required Methods§

Source

fn authenticate<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 Client, ) -> Pin<Box<dyn Future<Output = Result<(), YfCommonError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Source

fn get_crumb(&self) -> Option<String>

Source

fn is_authenticated(&self) -> bool

Source

fn clear_credentials(&self)

Implementors§