[−][src]Trait openidconnect::AsyncCodeTokenRequest
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,
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.
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]
TE: ErrorResponse + 'static,
TR: TokenResponse<TT> + Send,
TT: TokenType + Send,
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]
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,
Asynchronously sends the request to the authorization server and returns a Future.