Interface OAuth2AccessTokenResponseClient
- All Known Implementing Classes:
DefaultAuthorizationCodeTokenResponseClient
public interface OAuth2AccessTokenResponseClient
Exchanges an authorization code for tokens at the provider's token
endpoint.
-
Method Summary
Modifier and TypeMethodDescriptiongetTokenResponse(ClientRegistration registration, OAuth2AuthorizationRequest authorizationRequest, String code) The provider's answer.
-
Method Details
-
getTokenResponse
OAuth2AccessTokenResponse getTokenResponse(ClientRegistration registration, OAuth2AuthorizationRequest authorizationRequest, String code) The provider's answer.
OAuth2AuthenticationException: when the provider refuses, cannot be reached, or answers with something that is not a token response
-