Class X509WebflowConfigurer
- java.lang.Object
-
- org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer
-
- org.apereo.cas.web.flow.X509WebflowConfigurer
-
- All Implemented Interfaces:
org.apereo.cas.web.flow.CasWebflowConfigurer,org.springframework.core.Ordered
public class X509WebflowConfigurer extends org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurerTheX509WebflowConfigureris responsible for adjusting the CAS webflow context for x509 integration.Creates a flow that starts by trying to construct credentials using an X509 certificate found as request attribute with key javax.servlet.request.X509Certificate
X509CertificateCredentialsNonInteractiveAction. If the check of the certificate is valid, flow goes to sendTicketGrantingTicket. On error or authenticationFailure, the user is sent to the login page. The authenticationFailure outcome can happen when CAS got a valid certificate but couldn't find entry for the certificate in an attribute repository.Credentials are cleared out at the end of the action in case the user is sent to the login page where the X509 credentials object will cause errors (e.g. no username property)
The X509 action is added to the main login flow by overriding the @link CasWebflowConstants#TRANSITION_ID_SUCCESS} outcome of the
CasWebflowConstants.STATE_ID_INIT_LOGIN_FORMaction.- Since:
- 4.2
-
-
Field Summary
-
Fields inherited from class org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer
applicationContext, casProperties, flowBuilderServices, loginFlowDefinitionRegistry, logoutFlowDefinitionRegistry
-
-
Constructor Summary
Constructors Constructor Description X509WebflowConfigurer(org.springframework.webflow.engine.builder.support.FlowBuilderServices flowBuilderServices, org.springframework.webflow.definition.registry.FlowDefinitionRegistry loginFlowDefinitionRegistry, org.springframework.context.ApplicationContext applicationContext, org.apereo.cas.configuration.CasConfigurationProperties casProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()-
Methods inherited from class org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer
addActionsToActionStateExecutionListAt, appendActionsToActionStateExecutionList, buildFlow, cloneActionState, containsFlowState, containsSubflowState, containsTransition, createActionState, createActionState, createActionState, createActionState, createClonedActionState, createDecisionState, createEndState, createEndState, createEndState, createEndState, createEndState, createEvaluateAction, createEvaluateActionForExistingActionState, createExpression, createExpression, createFlowVariable, createMapperToSubflowState, createMappingToSubflowState, createSetAction, createStateBinderConfiguration, createStateDefaultTransition, createStateDefaultTransition, createStateModelBinding, createSubflowAttributeMapper, createSubflowState, createSubflowState, createTransition, createTransition, createTransition, createTransition, createTransitionForState, createTransitionForState, createTransitionsForState, createViewState, createViewState, createViewState, getApplicationContext, getCasProperties, getExpressionStringFromAction, getFlowBuilderServices, getLoginFlow, getLoginFlowDefinitionRegistry, getLogoutFlow, getLogoutFlowDefinitionRegistry, getName, getOrder, getSpringExpressionParser, getStartState, getState, getState, getTransitionableState, getTransitionableState, getTransitionExecutionCriteriaChainForTransition, getViewStateBinderConfiguration, initialize, prependActionsToActionStateExecutionList, prependActionsToActionStateExecutionList, prependActionsToActionStateExecutionList, prependActionsToActionStateExecutionList, setLogoutFlowDefinitionRegistry, setName, setOrder, setStartState, setStartState, toString
-
-
-
-
Constructor Detail
-
X509WebflowConfigurer
public X509WebflowConfigurer(org.springframework.webflow.engine.builder.support.FlowBuilderServices flowBuilderServices, org.springframework.webflow.definition.registry.FlowDefinitionRegistry loginFlowDefinitionRegistry, org.springframework.context.ApplicationContext applicationContext, org.apereo.cas.configuration.CasConfigurationProperties casProperties)
-
-