Class OAuth2UserRequest

java.lang.Object
com.codename1.backend.security.oauth2.client.OAuth2UserRequest
Direct Known Subclasses:
OidcUserRequest

public class OAuth2UserRequest extends Object
What an OAuth2UserService is asked with: the provider the user signed in through, and the tokens it issued.
  • Constructor Details

  • 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.