Class DuoPreauthAuthenticator
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.idp.authn.duo.impl.AbstractDuoAuthenticator
net.shibboleth.idp.authn.duo.impl.DuoPreauthAuthenticator
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
Implementation of the the Duo AuthAPI /v2/preauth endpoint.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.fasterxml.jackson.core.type.TypeReference<DuoResponseWrapper<DuoPreauthResponse>>
TypeReference for the response generated by the endpoint. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(DuoAuthenticationContext duoContext, DuoIntegration duoIntegration) Perform an authentication action via the Duo AuthAPI /preauth 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
-
wrapperTypeRef
@Nonnull private final com.fasterxml.jackson.core.type.TypeReference<DuoResponseWrapper<DuoPreauthResponse>> wrapperTypeRefTypeReference for the response generated by the endpoint.
-
-
Constructor Details
-
DuoPreauthAuthenticator
public DuoPreauthAuthenticator()Constructor.
-
-
Method Details
-
authenticate
public DuoPreauthResponse authenticate(@Nonnull DuoAuthenticationContext duoContext, @Nonnull DuoIntegration duoIntegration) throws com.duosecurity.duoweb.DuoWebException Perform an authentication action via the Duo AuthAPI /preauth endpoint.- Parameters:
duoContext
- Duo authentication context to useduoIntegration
- Duo integration to use- Returns:
- a
DuoPreauthResponse
- Throws:
com.duosecurity.duoweb.DuoWebException
- if an error occurs
-