public class WebClientReactiveAuthorizationCodeTokenResponseClient extends java.lang.Object implements ReactiveOAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest>
ReactiveOAuth2AccessTokenResponseClient that "exchanges"
an authorization code credential for an access token credential
at the Authorization Server's Token Endpoint.
NOTE: This implementation uses the Nimbus OAuth 2.0 SDK internally.
OAuth2AccessTokenResponseClient,
OAuth2AuthorizationCodeGrantRequest,
OAuth2AccessTokenResponse,
Nimbus OAuth 2.0 SDK,
Section 4.1.3 Access Token Request (Authorization Code Grant),
Section 4.1.4 Access Token Response (Authorization Code Grant)| Constructor and Description |
|---|
WebClientReactiveAuthorizationCodeTokenResponseClient() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse> |
getTokenResponse(OAuth2AuthorizationCodeGrantRequest authorizationGrantRequest)
Exchanges the authorization grant credential, provided in the authorization grant request,
for an access token credential at the Authorization Server's Token Endpoint.
|
public WebClientReactiveAuthorizationCodeTokenResponseClient()
public reactor.core.publisher.Mono<org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse> getTokenResponse(OAuth2AuthorizationCodeGrantRequest authorizationGrantRequest)
ReactiveOAuth2AccessTokenResponseClientgetTokenResponse in interface ReactiveOAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest>authorizationGrantRequest - the authorization grant request that contains the authorization grant credentialOAuth2AccessTokenResponse that contains the access token credential