Class ValidateOIDCAuthentication

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

public class ValidateOIDCAuthentication extends AbstractValidationAction
An action that builds an AuthenticationResult based on an inbound OIDC authentication response.

A EndUserClaimsContext is used as the basis of the result, which stores the merged id_token and UserInfo claims set, alongside the raw id_token claims.

Actual validation is all upstream of this action, but the use of the ValidationAction subclass is a convenience for auditing and handling the result.

Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX, IdPEventIds.INVALID_RELYING_PARTY_CTX, IdPEventIds.INVALID_PROFILE_CONFIG, AuthnEventIds.NO_CREDENTIALS
Precondition:
ProfileRequestContext.getSubcontext(AuthenticationContext.class).getAttemptedFlow() != null
Postcondition:
If AuthenticationContext.getSubcontext(EndUserClaimsContext.class, false)!= null, then an AuthenticationResult is saved to the AuthenticationContext.