Class AddScopeToClientMetadata

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class AddScopeToClientMetadata extends AbstractOIDCClientMetadataPopulationAction
Adds the Scope from the input metadata to the output OIDCClientMetadata. If the scope is null or empty, the configurable default Scope is set. By default, its value is 'openid'.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • defaultScope

      @Nonnull private com.nimbusds.oauth2.sdk.Scope defaultScope
      The default Scope if it was not defined in the request.
  • Constructor Details

    • AddScopeToClientMetadata

      public AddScopeToClientMetadata()
      Constructor.
  • Method Details

    • setDefaultScope

      public void setDefaultScope(@Nonnull com.nimbusds.oauth2.sdk.Scope scope)
      Set the default Scope to be used if it was not defined in the request.
      Parameters:
      scope - The default Scope to be used if it was not defined in the request.
    • getDefaultScope

      @Nonnull public com.nimbusds.oauth2.sdk.Scope getDefaultScope()
      Get the default Scope to be used if it was not defined in the request.
      Returns:
      The default Scope to be used if it was not defined in the request.
    • doExecute

      protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
      Overrides:
      doExecute in class AbstractProfileAction