Trait AuthProvider
Source pub trait AuthProvider:
Send
+ Sync
+ 'static {
// Required methods
fn begin_login<'life0, 'async_trait>(
&'life0 self,
req: BeginLoginRequest,
) -> Pin<Box<dyn Future<Output = Result<BeginLoginResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn complete_login<'life0, 'async_trait>(
&'life0 self,
req: CompleteLoginRequest,
) -> Pin<Box<dyn Future<Output = Result<AuthenticatedUser>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn configure<'life0, 'life1, 'async_trait>(
&'life0 self,
_name: &'life1 str,
_config: Map<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn metadata(&self) -> Option<RuntimeMetadata> { ... }
fn warnings(&self) -> Vec<String> { ... }
fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn validate_external_token<'life0, 'life1, 'async_trait>(
&'life0 self,
_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AuthenticatedUser>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn session_ttl(&self) -> Option<Duration> { ... }
}