Class OAuth2UserRequest
java.lang.Object
com.codename1.backend.security.oauth2.client.OAuth2UserRequest
- Direct Known Subclasses:
OidcUserRequest
What an
OAuth2UserService is asked with: the provider the user signed in
through, and the tokens it issued.-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessTokenResponse tokenResponse) OAuth2UserRequest(ClientRegistration clientRegistration, OAuth2AccessTokenResponse tokenResponse, Collection<String> requestedScopes) The scopes actually sent in this authorization request, after customization. -
Method Summary
Modifier and TypeMethodDescriptionThe access token, to ask the provider about the user with.Used when the provider omits scope, meaning the scopes that were requested.The provider's whole answer.
-
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
-
getClientRegistration
-
getTokenResponse
The provider's whole answer. -
getAccessToken
The access token, to ask the provider about the user with.
-