Interface AuthorizationCodeRequest


  • public interface AuthorizationCodeRequest
    Provides information about a request to be made to fetch the tokens as part of an OAuth Authorization-code grant type dance.
    Since:
    1.0
    • Method Detail

      • getResourceOwnerId

        String getResourceOwnerId()
        Returns:
        id for the oauth state.
      • getAuthorizationUrl

        String getAuthorizationUrl()
        Returns:
        The OAuth authentication server url that authorized the app for a certain user.
      • getTokenUrl

        String getTokenUrl()
        Returns:
        The OAuth authentication server url that provided the tokens.
      • getClientId

        String getClientId()
        Returns:
        The application identifier as defined in the OAuth authentication server.
      • getClientSecret

        String getClientSecret()
        Returns:
        The application secret as defined in the OAuth authentication server.
      • getScopes

        String getScopes()
        Returns:
        the scopes sent to the authorization url.
      • getState

        Optional<String> getState()
        Returns:
        state kept between the authentication request and the callback done by the OAuth authorization server to the external callback url.