Class DefaultRequestLoginHintLookupFunction

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

@ThreadSafeAfterInit public class DefaultRequestLoginHintLookupFunction extends AbstractAuthenticationRequestLookupFunction<String>
A function that returns request login hint via a lookup function. This default lookup locates hint from oidc authentication request if available. If information is not available, null is returned. If there is hint in request object it is used instead of login_hint parameter.
Since:
4.2.0
  • Field Details

    • log

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

    • DefaultRequestLoginHintLookupFunction

      public DefaultRequestLoginHintLookupFunction()
  • Method Details

    • doLookup

      @Nullable protected String doLookup(@Nonnull AuthenticationRequest req, @Nullable PushedAuthorizationRequest parRequest, @Nullable JWT requestObject, boolean isRequestObjectFromPar)
      Implemented to perform the actual lookup.
      Specified by:
      doLookup in class AbstractAuthenticationRequestLookupFunction<String>
      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.