Class DuoPreauthAuthenticator

  • All Implemented Interfaces:
    net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent

    public class DuoPreauthAuthenticator
    extends AbstractDuoAuthenticator
    Implementation of the the Duo AuthAPI /v2/preauth endpoint.
    • 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
                                               net.shibboleth.idp.authn.duo.context.DuoAuthenticationContext duoContext,
                                               @Nonnull
                                               net.shibboleth.idp.authn.duo.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