Class AbstractDuoAuthenticationAction

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action
Direct Known Subclasses:
ExchangeCodeForDuoToken, HealthCheckDuoOIDCAuthAPI, ValidateDuoResponseState, ValidateTokenClaims, ValidateTokenSignature

public abstract class AbstractDuoAuthenticationAction extends AbstractAuthenticationAction

A base class for Duo 2FA authentication related actions.

In addition to the work performed by AbstractAuthenticationAction, this action also looks up and makes available the DuoOIDCAuthenticationContext.

Duo 2FA authentication action implementations should override the doExecute(ProfileRequestContext, AuthenticationContext, DuoOIDCAuthenticationContext) method.

Event:
AuthnEventIds.INVALID_AUTHN_CTX
Precondition:
ProfileRequestContext.getSubcontext(AuthenticationContext.class) != null
Postcondition:
AuthenticationContext.getSubcontext(DuoOIDCAuthenticationContext.class) != null