InboundMessageType - type of in-bound messageOutboundMessageType - type of out-bound messagepublic class ExtractDuoAuthenticationFromHeaders<InboundMessageType,OutboundMessageType> extends AbstractAuthenticationAction<InboundMessageType,OutboundMessageType>
DuoAuthenticationContext, and attaches it to the AuthenticationContext.EventIds.PROCEED_EVENT_ID, AuthnEventIds.NO_CREDENTIALS
ProfileRequestContext.getSubcontext(AuthenticationContext.class) != null
DuoAuthenticationContext.| Modifier and Type | Field and Description |
|---|---|
private boolean |
autoAuthenticationSupported
Whether "auto" should be the default for factor and device.
|
private boolean |
clientAddressTrusted
Whether to trust, and extract, the client address.
|
private String |
deviceHeaderName
Header name for device.
|
private String |
factorHeaderName
Header name for factor.
|
private org.slf4j.Logger |
log
Class logger.
|
private String |
passcodeHeaderName
Header name for passcode.
|
private com.google.common.base.Function<ProfileRequestContext,Map<String,String>> |
pushInfoLookupStrategy
Strategy function for populating pushinfo AuthAPI parameter.
|
| Constructor and Description |
|---|
ExtractDuoAuthenticationFromHeaders()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext,
AuthenticationContext authenticationContext) |
protected void |
extractHeaders(DuoAuthenticationContext context)
Extracts the Duo API arguments passed in via the request headers.
|
boolean |
isAutoAuthenticationSupported()
Get whether "auto" is the default setting.
|
boolean |
isClientAddressTrusted()
Get whether the client address should be trusted for use in API calls.
|
void |
setAutoAuthenticationSupported(boolean flag)
Set whether "auto" is the default setting.
|
void |
setClientAdddressTrusted(boolean flag)
Set whether the client address should be trusted for use in API calls.
|
void |
setDeviceHeader(String headerName)
Set the device header name.
|
void |
setFactorHeader(String headerName)
Set the factor header name.
|
void |
setPasscodeHeader(String headerName)
Set the passcode header name.
|
void |
setPushInfoLookupStrategy(com.google.common.base.Function<ProfileRequestContext,Map<String,String>> strategy)
Set lookup strategy for AuthAPI pushinfo parameter.
|
doExecute, doPreExecute, doPreExecute, setLookupStrategydoExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private final org.slf4j.Logger log
private boolean autoAuthenticationSupported
private boolean clientAddressTrusted
@Nullable private com.google.common.base.Function<ProfileRequestContext,Map<String,String>> pushInfoLookupStrategy
ExtractDuoAuthenticationFromHeaders()
public void setFactorHeader(@Nonnull@NotEmpty String headerName)
headerName - the factor header namepublic void setDeviceHeader(@Nonnull@NotEmpty String headerName)
headerName - the factor header namepublic void setPasscodeHeader(@Nonnull@NotEmpty String headerName)
headerName - the factor header namepublic boolean isClientAddressTrusted()
public void setClientAdddressTrusted(boolean flag)
flag - flag to setpublic boolean isAutoAuthenticationSupported()
public void setAutoAuthenticationSupported(boolean flag)
flag - flag to setpublic void setPushInfoLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,Map<String,String>> strategy)
strategy - lookup strategyprotected void doExecute(@Nonnull ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doExecute in class AbstractAuthenticationAction<InboundMessageType,OutboundMessageType>protected void extractHeaders(@Nonnull DuoAuthenticationContext context)
context - the DuoApiAuthContext to store the parameters inCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.