Class PopulatePasswordlessContext

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

public class PopulatePasswordlessContext extends AbstractProfileAction
A profile action to extract passwordless username from a sealed cookie and populate it into an existing DuoPasswordlessContext.

If the context contains a username already, the action simply proceeds.

If the cookie exists but signals an opt-out, then the AuthnEventIds.RESELECT_FLOW event is signalled.

Since:
2.1.0
Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX, AuthnEventIds.REQUEST_UNSUPPORTED, AuthnEventIds.RESELECT_FLOW
Precondition:
AuthenticationContext.getSubcontext(DuoPasswordlessContext.class) != null
Postcondition:
DuoPasswordlessContext.getUsername() != null