Class DuoPreauthAuthenticator

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent

public class DuoPreauthAuthenticator
extends AbstractDuoAuthenticator
Implementation of the the Duo AuthAPI /v2/preauth endpoint.
  • Field Details

    • wrapperTypeRef

      @Nonnull private final com.fasterxml.jackson.core.type.TypeReference<DuoResponseWrapper<DuoPreauthResponse>> wrapperTypeRef
      TypeReference for the response generated by the endpoint.
  • Constructor Details

    • DuoPreauthAuthenticator

      public DuoPreauthAuthenticator()
      Constructor.
  • Method Details

    • authenticate

      public DuoPreauthResponse authenticate​(@Nonnull DuoAuthenticationContext duoContext, @Nonnull DuoIntegration duoIntegration) throws com.duosecurity.duoweb.DuoWebException
      Perform an authentication action via the Duo AuthAPI /preauth endpoint.
      Parameters:
      duoContext - Duo authentication context to use
      duoIntegration - Duo integration to use
      Returns:
      a DuoPreauthResponse
      Throws:
      com.duosecurity.duoweb.DuoWebException - if an error occurs