Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public class OAuth2UserRequest
- Object
- OAuth2UserRequest
Known subtypesOidcUserRequest
What an
OAuth2UserService is asked with: the provider the user signed in
through, and the tokens it issued.Constructors
Methods
public Set<String> getRequestedScopes() | Used when the provider omits scope, meaning the scopes that were requested. |
public ClientRegistration getClientRegistration() | |
public OAuth2AccessTokenResponse getTokenResponse() | The provider’s whole answer. |
public String getAccessToken() | The access token, to ask the provider about the user with. |
Inherited methods
Constructor details
OAuth2UserRequest
public OAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessTokenResponse tokenResponse)OAuth2UserRequest
public OAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessTokenResponse tokenResponse, Collection<String> requestedScopes)The scopes actually sent in this authorization request, after customization.
Method details
getRequestedScopes
public Set<String> getRequestedScopes()Used when the provider omits scope, meaning the scopes that were requested.
getClientRegistration
public ClientRegistration getClientRegistration()getTokenResponse
public OAuth2AccessTokenResponse getTokenResponse()The provider’s whole answer.
getAccessToken
public String getAccessToken()The access token, to ask the provider about the user with.