Class DuoPreauthAuthenticator

    • Field Detail

      • wrapperTypeRef

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

      • DuoPreauthAuthenticator

        public DuoPreauthAuthenticator()
        Constructor.
    • Method Detail

      • 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