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

public class AddUserName extends AbstractWebAuthnAction<WebAuthnRegistrationContext>
An action to generate or lookup a WebAuthn user.name. the user.name is a human-palatable identifier for a user account. It is intended only for display by the authenticator, for example, aiding the user in determining the difference between user accounts with similar displayNames. This can be different than the internal username used within the IdP to store credentials against.

Used during the registration process, added to PublicKeyCredentialCreationOptions.

Event:
WebAuthnRegistrationEventIds.INVALID_REGISTRATION
Precondition:
ProfileRequestContext.getSubcontext(WebAuthnRegistrationContext.class) != null
Postcondition:
a user.name is added to the registration context