pub struct HttpAuthProvider { /* private fields */ }
Expand description
Production AuthProvider implementation using HttpClient
Implementations§
Source§impl HttpAuthProvider
impl HttpAuthProvider
Sourcepub fn new(client: HttpClient) -> Self
pub fn new(client: HttpClient) -> Self
Create a new HttpAuthProvider
Trait Implementations§
Source§impl AuthProvider for HttpAuthProvider
impl AuthProvider for HttpAuthProvider
Source§fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
credentials: &'life1 Credentials,
) -> Pin<Box<dyn Future<Output = Result<AuthResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn authenticate<'life0, 'life1, 'async_trait>(
&'life0 self,
credentials: &'life1 Credentials,
) -> Pin<Box<dyn Future<Output = Result<AuthResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Authenticate with the given credentials
Source§fn refresh_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<AuthResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn refresh_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<AuthResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Refresh an existing session
Source§fn validate_token<'life0, 'life1, 'async_trait>(
&'life0 self,
session_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn validate_token<'life0, 'life1, 'async_trait>(
&'life0 self,
session_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Validate a session token
Auto Trait Implementations§
impl Freeze for HttpAuthProvider
impl !RefUnwindSafe for HttpAuthProvider
impl Send for HttpAuthProvider
impl Sync for HttpAuthProvider
impl Unpin for HttpAuthProvider
impl !UnwindSafe for HttpAuthProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more