Class ValidateTokenClaims

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

public class ValidateTokenClaims extends AbstractDuoAuthenticationAction
Action that validates the claims of the Duo id_token using the supplied ClaimsValidator. The verifier must be thread-safe and validate the claims set against the OpenID Connect core 1.0 section 3.1.3.7 specification and those required by Duo.
Event:
EventIds.PROCEED_EVENT_ID, AuthnEventIds.AUTHN_EXCEPTION, AuthnEventIds.NO_CREDENTIALS
Precondition:
      ProfileRequestContext.getSubcontext(AuthenticationContext.class, false) != null
      
,
      AuthenticationContext.getSubcontext(DuoOIDCAuthenticationContext.class, false) != null
      
,
      DuoOIDCAuthenticationContext.getAuthToken() != null
      
,
      DuoOIDCAuthenticationContext.getIntegration() != null
      
  • Field Details

    • log

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

      @NonnullBeforeExec private com.nimbusds.jwt.JWTClaimsSet claimsSet
      The parsed claimset.
    • cleanupHook

      @Nullable private Consumer<ProfileRequestContext> cleanupHook
      A cleanup hook to execute after either a successful or unsuccessful claims validation.
    • claimsValidator

      @NonnullAfterInit private ClaimsValidator claimsValidator
      The JWT claims validator used to verify the claimsset.
  • Constructor Details

    • ValidateTokenClaims

      public ValidateTokenClaims()
  • Method Details