pub trait AuthProvider: Send + Sync {
// Required method
fn provide<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 AuthRequest,
) -> Pin<Box<dyn Future<Output = Result<AuthToken, AuthError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Provide authentication credentials for accessing a secret backend.
Required Methods§
Sourcefn provide<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 AuthRequest,
) -> Pin<Box<dyn Future<Output = Result<AuthToken, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn provide<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 AuthRequest,
) -> Pin<Box<dyn Future<Output = Result<AuthToken, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Provide an authentication token for the given request context.