[][src]Trait openidconnect::AsyncCodeTokenRequest

pub trait AsyncCodeTokenRequest<TE, TR, TT> where
    TE: ErrorResponse + 'static,
    TR: TokenResponse<TT> + Send,
    TT: TokenType + Send
{ #[must_use] fn request_async<'async_trait, C, F, RE>(
        self,
        http_client: C
    ) -> Pin<Box<dyn Future<Output = Result<TR, RequestTokenError<RE, TE>>> + 'async_trait + Send>>
    where
        C: FnOnce(HttpRequest) -> F + Send + 'async_trait,
        F: Future<Output = Result<HttpResponse, RE>> + Send + 'async_trait,
        RE: Fail + 'async_trait,
        Self: 'async_trait
; }

Asynchronous request to exchange an authorization code for an access token.

Required methods

#[must_use]fn request_async<'async_trait, C, F, RE>(
    self,
    http_client: C
) -> Pin<Box<dyn Future<Output = Result<TR, RequestTokenError<RE, TE>>> + 'async_trait + Send>> where
    C: FnOnce(HttpRequest) -> F + Send + 'async_trait,
    F: Future<Output = Result<HttpResponse, RE>> + Send + 'async_trait,
    RE: Fail + 'async_trait,
    Self: 'async_trait, 

Asynchronously sends the request to the authorization server.

Loading content...

Implementors

impl<'impl0, TE, TR, TT> AsyncCodeTokenRequest<TE, TR, TT> for CodeTokenRequest<'impl0, TE, TR, TT> where
    TE: ErrorResponse + 'static,
    TR: TokenResponse<TT> + Send,
    TT: TokenType + Send
[src]

fn request_async<'async_trait, C, F, RE>(
    self,
    http_client: C
) -> Pin<Box<dyn Future<Output = Result<TR, RequestTokenError<RE, TE>>> + 'async_trait + Send>> where
    C: FnOnce(HttpRequest) -> F + Send + 'async_trait,
    F: Future<Output = Result<HttpResponse, RE>> + Send + 'async_trait,
    RE: Fail + 'async_trait,
    CodeTokenRequest<'impl0, TE, TR, TT>: 'async_trait, 
[src]

Asynchronously sends the request to the authorization server and returns a Future.

Loading content...