Class DefaultAllowedScopeLookupFunction

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.oidc.op.profile.logic.DefaultAllowedScopeLookupFunction
All Implemented Interfaces:
Function<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope>, Component, DestructableComponent, InitializableComponent

public class DefaultAllowedScopeLookupFunction extends AbstractInitializableComponent implements Function<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope>
Default function for looking up the allowed scope. The scope is obtained from OIDCMetadataContext if found, via unregistered client policy instead.
Since:
3.0.0
  • Field Details

    • unregisteredClientAllowedScopeLookupStrategy

      @Nonnull private Function<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope> unregisteredClientAllowedScopeLookupStrategy
      Lookup strategy for fetching the allowed scope for unregistered clients.
  • Constructor Details

    • DefaultAllowedScopeLookupFunction

      public DefaultAllowedScopeLookupFunction()
      Constructor.
  • Method Details

    • setUnregisteredClientAllowedScopeLookupStrategy

      public void setUnregisteredClientAllowedScopeLookupStrategy(@Nonnull Function<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope> strategy)
      Set the lookup strategy for fetching the allowed scope for unregistered clients.
      Parameters:
      strategy - What to set.
    • apply

      @Nullable public com.nimbusds.oauth2.sdk.Scope apply(@Nullable ProfileRequestContext input)
      Specified by:
      apply in interface Function<ProfileRequestContext,com.nimbusds.oauth2.sdk.Scope>