Class InitializeAuthenticationContext
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction<AuthenticationRequest>
net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationRequestAction
net.shibboleth.idp.plugin.oidc.op.profile.impl.InitializeAuthenticationContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,org.springframework.beans.factory.Aware,org.springframework.context.MessageSource,org.springframework.context.MessageSourceAware,org.springframework.webflow.execution.Action
An action that creates an
AuthenticationContext and attaches it to the current ProfileRequestContext.
As the incoming message is a OIDC AuthenticationRequest, the basic authentication policy
(IsPassive, ForceAuthn) is interpreted from the request prompt parameter. If the incoming message
has login_hint parameter the value of it is placed to hinted name.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<ProfileRequestContext>Extracts forceAuthn property from profile config.private final org.slf4j.LoggerClass logger.private Function<ProfileRequestContext,String> Strategy used to obtain the request login hint value.private Function<ProfileRequestContext,Duration> Strategy used to obtain the request max_age value.private Function<ProfileRequestContext,Prompt> Strategy used to obtain the requested prompt value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidvoidsetForceAuthnPredicate(Predicate<ProfileRequestContext> condition) Set the predicate to apply to derive the message-independent forced authn default.voidSet the strategy used to locate the request login hint.voidSet the strategy used to locate the request max age.voidSet the strategy used to locate the requested prompt.Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationRequestAction
getAuthenticationRequestMethods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction
doPreExecute, getRequestMethods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
promptLookupStrategy
Strategy used to obtain the requested prompt value. -
loginHintLookupStrategy
Strategy used to obtain the request login hint value. -
maxAgeLookupStrategy
Strategy used to obtain the request max_age value. -
forceAuthnPredicate
Extracts forceAuthn property from profile config.
-
-
Constructor Details
-
InitializeAuthenticationContext
public InitializeAuthenticationContext()Constructor.
-
-
Method Details
-
setPromptLookupStrategy
Set the strategy used to locate the requested prompt.- Parameters:
strategy- lookup strategy
-
setLoginHintLookupStrategy
Set the strategy used to locate the request login hint.- Parameters:
strategy- lookup strategy
-
setMaxAgeLookupStrategy
Set the strategy used to locate the request max age.- Parameters:
strategy- lookup strategy
-
setForceAuthnPredicate
Set the predicate to apply to derive the message-independent forced authn default.- Parameters:
condition- condition to set- Since:
- 3.1.0
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-