Class DefaultRequestedPromptLookupFunction

All Implemented Interfaces:
Function<ProfileRequestContext,Prompt>, Component, DestructableComponent, InitializableComponent, ContextDataLookupFunction<ProfileRequestContext,Prompt>

@ThreadSafeAfterInit public class DefaultRequestedPromptLookupFunction extends AbstractAuthorizationRequestLookupFunction<Prompt>
A function that returns copy of requested prompt via a lookup function. This default lookup locates prompt from OAuth authorization request if available. If information is not available, null is returned. If there is prompt in request object it is used instead of prompt parameter.
Since:
4.2.0
  • Field Details

    • log

      @Nonnull private org.slf4j.Logger log
      Class logger.
  • Constructor Details

    • DefaultRequestedPromptLookupFunction

      public DefaultRequestedPromptLookupFunction()
  • Method Details

    • doLookup

      @Nullable protected Prompt doLookup(@Nonnull AuthorizationRequest req, @Nullable PushedAuthorizationRequest parRequest, @Nullable JWT requestObject, boolean isRequestObjectFromPar)
      Implemented to perform the actual lookup.
      Specified by:
      doLookup in class AbstractAuthorizationRequestLookupFunction<Prompt>
      Parameters:
      req - authorization request to perform the lookup from.
      parRequest - pushed authorization request if authorization request was pushed.
      requestObject - request object if it was part of the request.
      isRequestObjectFromPar - flag to indicate that the request object is built by the PAR endpoint.
      Returns:
      lookup value.