Class DuoAuthAuthenticator
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.authn.duo.impl.AbstractDuoAuthenticator
-
- net.shibboleth.idp.authn.duo.impl.DuoAuthAuthenticator
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent
public class DuoAuthAuthenticator extends AbstractDuoAuthenticator
Implementation of the the Duo AuthApi /v2/auth endpoint.
-
-
Field Summary
Fields Modifier and Type Field Description private EscaperparamEscaperpushinfo escaper.private com.fasterxml.jackson.core.type.TypeReference<DuoResponseWrapper<DuoAuthResponse>>wrapperTypeRefa TypeReference for the repsonse generated by the endpoint.
-
Constructor Summary
Constructors Constructor Description DuoAuthAuthenticator()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DuoAuthResponseauthenticate(DuoAuthenticationContext duoContext, DuoIntegration duoIntegration)Perform an authentication action via the Duo AuthApi /auth endpoint.-
Methods inherited from class net.shibboleth.idp.authn.duo.impl.AbstractDuoAuthenticator
doAPIRequest, doInitialize, setHttpClient, setHttpClientSecurityParameters, setObjectMapper
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
-
-
-
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.
-
-
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 useduoIntegration- Duo integration to use- Returns:
- a
DuoAuthResponse - Throws:
com.duosecurity.duoweb.DuoWebException- if an error occurs
-
-