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