Class ExtractUsernameSearchFromFormRequest

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

public class ExtractUsernameSearchFromFormRequest extends AbstractWebAuthnAction<WebAuthnManagementContext>
An action that extracts the username search value from the incoming HTTP request.
Event:
{AuthnEventIds#NO_CREDENTIALS}, {EventIds#IO_ERROR}
Precondition:
ProfileRequestContext.getSubcontext(WebAuthnRegistrationContext.class) != null
Postcondition:
add the search parameter value to the context
  • Field Details

    • DEFAULT_PARAMETER_NAME

      @Nonnull @NotEmpty public static final String DEFAULT_PARAMETER_NAME
      Default credential Id parameter name.
      See Also:
    • log

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

      @NonnullAfterInit @NotEmpty private String requestParameterToExtract
      Name of the request parameter to extract.
  • Constructor Details

    • ExtractUsernameSearchFromFormRequest

      public ExtractUsernameSearchFromFormRequest()
      Constructor.
  • Method Details

    • setRequestParameterName

      public void setRequestParameterName(@Nonnull @NotEmpty String parameter)
      Set the name of the request parameter to extract the value from.
      Parameters:
      parameter - field name
    • doExecute

      protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull WebAuthnManagementContext context)
      Description copied from class: AbstractWebAuthnAction
      Performs this WebAuthn authentication action using the supplied WebAuthn context. Implementations should override this method.
      Overrides:
      doExecute in class AbstractWebAuthnAction<WebAuthnManagementContext>
      Parameters:
      profileRequestContext - the current IdP profile request context
      context - the WebAuthn context