Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public interface OAuth2AccessTokenResponseClient
Known subtypesDefaultAuthorizationCodeTokenResponseClient
Exchanges an authorization code for tokens at the provider’s token
endpoint.
Methods
public abstract OAuth2AccessTokenResponse getTokenResponse(ClientRegistration registration, OAuth2AuthorizationRequest authorizationRequest, String code) | The provider’s answer. |
Method details
getTokenResponse
public abstract 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