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
public class DuoPreauthAuthenticator extends AbstractDuoAuthenticator
Implementation of the the Duo AuthAPI /v2/preauth endpoint.
-
-
Field Summary
Fields Modifier and Type Field Description private com.fasterxml.jackson.core.type.TypeReference<DuoResponseWrapper<DuoPreauthResponse>>wrapperTypeRefTypeReference for the response generated by the endpoint.
-
Constructor Summary
Constructors Constructor Description DuoPreauthAuthenticator()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DuoPreauthResponseauthenticate(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 Detail
-
wrapperTypeRef
@Nonnull private final com.fasterxml.jackson.core.type.TypeReference<DuoResponseWrapper<DuoPreauthResponse>> wrapperTypeRef
TypeReference for the response generated by the endpoint.
-
-
Method Detail
-
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
-
-