Class LookupRegisteredCredentialsFromUserHandle

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

public class LookupRegisteredCredentialsFromUserHandle extends AbstractWebAuthnAction<WebAuthnAuthenticationContext>
An action that lookups existing registered credentials from the userHandle supplied in the authenticators assertion response and sets them back onto the context. If no credentials exist and the trigger condition is set, an error event will be produced.

Also ensures the username found from the userHandle matches that in the authentication context if supplied.

Event:
AuthnEventIds.INVALID_AUTHN_CTX, AuthnEventIds.INVALID_CREDENTIALS
Postcondition:
BaseWebAuthnContext.setExistingCredentials() is either null if no existing credentials are found, or contains the credentials from the credential repository
  • Field Details

    • log

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

      private Predicate<ProfileRequestContext> triggerEventOnNoCredentialsPredicate
      Should an event be built if there are no credentials found?. Defaults to false.
    • noCredentialsEventId

      @Nonnull @NotEmpty private String noCredentialsEventId
      The EventID of the event to build if no credentials are found and triggerEventOnNoCredentialsPredicate evaluates to true.
    • repository

      The credential repository to use.
    • assertion

      private com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAssertionResponse,com.yubico.webauthn.data.ClientAssertionExtensionOutputs> assertion
      The stashed assertion from the context.
    • requestOptions

      private com.yubico.webauthn.data.PublicKeyCredentialRequestOptions requestOptions
      The stashed request options from the context.
  • Constructor Details

    • LookupRegisteredCredentialsFromUserHandle

      public LookupRegisteredCredentialsFromUserHandle()
      Constructor.
  • Method Details