Class DuoAuthAuthenticator

  • 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 DuoAuthAuthenticator
    extends AbstractDuoAuthenticator
    Implementation of the the Duo AuthApi /v2/auth endpoint.
    • 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
                                            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 /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