Class DuoAuthAuthenticator

    • Field Detail

      • paramEscaper

        @Nonnull
        private final Escaper paramEscaper
        pushinfo escaper.
      • wrapperTypeRef

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

      • DuoAuthAuthenticator

        public DuoAuthAuthenticator()
        Constructor.
    • Method Detail

      • authenticate

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