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
Implementation of the the Duo AuthApi /v2/auth endpoint.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Escaper
pushinfo escaper.private final com.fasterxml.jackson.core.type.TypeReference<DuoResponseWrapper<DuoAuthResponse>>
a TypeReference for the repsonse generated by the endpoint. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(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 Details
-
paramEscaper
pushinfo escaper. -
wrapperTypeRef
@Nonnull private final com.fasterxml.jackson.core.type.TypeReference<DuoResponseWrapper<DuoAuthResponse>> wrapperTypeRefa TypeReference for the repsonse generated by the endpoint.
-
-
Constructor Details
-
DuoAuthAuthenticator
public DuoAuthAuthenticator()Constructor.
-
-
Method Details
-
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
-