Interface ReactiveOAuth2AccessTokenResponseClient<T extends AbstractOAuth2AuthorizationGrantRequest>
-
- All Known Implementing Classes:
WebClientReactiveAuthorizationCodeTokenResponseClient
,WebClientReactiveClientCredentialsTokenResponseClient
,WebClientReactivePasswordTokenResponseClient
,WebClientReactiveRefreshTokenTokenResponseClient
public interface ReactiveOAuth2AccessTokenResponseClient<T extends AbstractOAuth2AuthorizationGrantRequest>
A reactive strategy for "exchanging" an authorization grant credential (e.g. an Authorization Code) for an access token credential at the Authorization Server's Token Endpoint.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<OAuth2AccessTokenResponse>
getTokenResponse(T authorizationGrantRequest)
Exchanges the authorization grant credential, provided in the authorization grant request, for an access token credential at the Authorization Server's Token Endpoint.
-
-
-
Method Detail
-
getTokenResponse
reactor.core.publisher.Mono<OAuth2AccessTokenResponse> getTokenResponse(T authorizationGrantRequest)
Exchanges the authorization grant credential, provided in the authorization grant request, for an access token credential at the Authorization Server's Token Endpoint.- Parameters:
authorizationGrantRequest
- the authorization grant request that contains the authorization grant credential- Returns:
- an
OAuth2AccessTokenResponse
that contains theaccess token
credential - Throws:
OAuth2AuthorizationException
- if an error occurs while attempting to exchange for the access token credential
-
-