TokenFlow

Trait TokenFlow 

Source
pub trait TokenFlow {
    type Request;
    type VerifiedRequest;
    type Response;

    // Required methods
    fn verify_token_request<'life0, 'life1, 'async_trait>(
        &'life0 self,
        authenticated_client: Option<Client>,
        request: Self::Request,
        provider: &'life1 (impl 'async_trait + Provider),
    ) -> Pin<Box<dyn Future<Output = Result<Self::VerifiedRequest, OAuthError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn perform_token_exchange<'life0, 'async_trait>(
        &'life0 self,
        request: Self::VerifiedRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Response, OAuthError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn verify_token_request<'life0, 'life1, 'async_trait>( &'life0 self, authenticated_client: Option<Client>, request: Self::Request, provider: &'life1 (impl 'async_trait + Provider), ) -> Pin<Box<dyn Future<Output = Result<Self::VerifiedRequest, OAuthError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn perform_token_exchange<'life0, 'async_trait>( &'life0 self, request: Self::VerifiedRequest, ) -> Pin<Box<dyn Future<Output = Result<Self::Response, OAuthError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§