Interface OAuth2TokenConfiguration

All Superinterfaces:
AttributeResolvingProfileConfiguration, AuthenticationProfileConfiguration, Component, ConditionalProfileConfiguration, IdentifiedComponent, OAuth2AccessTokenProducingProfileConfiguration, OAuth2ClientAuthenticableProfileConfiguration, OAuth2DPoPProofValidatingProfileConfiguration, OAuth2FlowAwareProfileConfiguration, OAuth2ProfileConfiguration, OAuth2RefreshTokenProducingProfileConfiguration, OAuth2ScopeValidatingProfileConfiguration, OAuth2TokenEncryptionProfileConfiguration, OIDCFlowAwareProfileConfiguration, OIDCIDTokenProducingProfileConfiguration, OIDCProfileConfiguration, OIDCSSOProfileConfiguration, OIDCSSOProviderConfiguration, ProfileConfiguration
All Known Implementing Classes:
DefaultOAuth2TokenConfiguration

public interface OAuth2TokenConfiguration extends OIDCSSOProviderConfiguration
OIDC-aware OAuth 2.0 token endpoint profile configuration.
  • Field Details

  • Method Details

    • getGrantTypes

      @ConfigurationSetting(name="grantTypes") @Nonnull @NonnullElements @NotLive @Unmodifiable Set<String> getGrantTypes(@Nullable ProfileRequestContext profileRequestContext)
      Get the enabled grant types.
      Parameters:
      profileRequestContext - profile request context
      Returns:
      enabled grant types
    • isEnforceRefreshTokenRotation

      @ConfigurationSetting(name="enforceRefreshTokenRotation") boolean isEnforceRefreshTokenRotation(@Nullable ProfileRequestContext profileRequestContext)
      Get whether always revoke the refresh_token after it's used.
      Parameters:
      profileRequestContext - profile request context
      Returns:
      whether always revoke the refresh_token after it's used
      Since:
      2.1.0
    • getRefreshTokenClaimsSetManipulationStrategy

      @ConfigurationSetting(name="refreshTokenClaimsSetManipulationStrategy") @Nullable BiFunction<ProfileRequestContext,Map<String,Object>,Map<String,Object>> getRefreshTokenClaimsSetManipulationStrategy(@Nullable ProfileRequestContext profileRequestContext)
      Get the bi-function for manipulating refresh token claims set.
      Parameters:
      profileRequestContext - profile request context
      Returns:
      the bi-function for manipulating refresh token claims set
      Since:
      2.1.0
    • isIssueIdTokenViaRefreshToken

      @ConfigurationSetting(name="issueIdTokenViaRefreshToken") boolean isIssueIdTokenViaRefreshToken(@Nullable ProfileRequestContext profileRequestContext)
      Get whether the id_token is issued when refresh token grant is used.
      Parameters:
      profileRequestContext - profile request context
      Returns:
      whether id_token is issued when refresh token grant is used
      Since:
      2.2.0
    • isLimitInitialAccessTokenToSelf

      @ConfigurationSetting(name="limitInitialAccessTokenToSelf") boolean isLimitInitialAccessTokenToSelf(@Nullable ProfileRequestContext profileRequestContext)
      Get whether the initial access token audience is solely to self (i.e. UserInfo) use.
      Parameters:
      profileRequestContext - profile request context
      Returns:
      whether initial access token audience is solely to self (i.e. UserInfo) use
      Since:
      3.2.0