Class OAuthConfiguration

java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.core.client.config.BaseClientConfiguration
org.pac4j.oauth.config.OAuthConfiguration
Direct Known Subclasses:
OAuth10Configuration, OAuth20Configuration

public abstract class OAuthConfiguration extends org.pac4j.core.client.config.BaseClientConfiguration
The base OAuth configuration.
Since:
2.0.0
Author:
Jerome Leleu
  • Field Details

    • OAUTH_TOKEN

      public static final String OAUTH_TOKEN
      Constant OAUTH_TOKEN="oauth_token"
      See Also:
    • RESPONSE_TYPE_CODE

      public static final String RESPONSE_TYPE_CODE
      Constant RESPONSE_TYPE_CODE="code"
      See Also:
    • key

      protected String key
    • secret

      protected String secret
    • tokenAsHeader

      protected boolean tokenAsHeader
    • responseType

      protected String responseType
    • scope

      protected String scope
    • hasBeenCancelledFactory

      protected HasBeenCancelledFactory hasBeenCancelledFactory
    • profileDefinition

      protected OAuthProfileDefinition profileDefinition
    • httpClientConfig

      protected com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig
    • api

      protected Object api
  • Constructor Details

    • OAuthConfiguration

      public OAuthConfiguration()
  • Method Details

    • internalInit

      protected void internalInit(boolean forceReinit)
      Specified by:
      internalInit in class org.pac4j.core.util.InitializableObject
    • buildService

      public abstract com.github.scribejava.core.oauth.OAuthService buildService(org.pac4j.core.context.WebContext context, org.pac4j.core.client.IndirectClient client)

      buildService.

      Parameters:
      context - a WebContext object
      client - a IndirectClient object
      Returns:
      a OAuthService object