Class X509WebflowConfigurer

  • All Implemented Interfaces:
    org.apereo.cas.web.flow.CasWebflowConfigurer, org.springframework.core.Ordered

    public class X509WebflowConfigurer
    extends org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer
    The X509WebflowConfigurer is 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_FORM action.

    Since:
    4.2
    • Field Summary

      • Fields inherited from class org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer

        applicationContext, casProperties, flowBuilderServices, loginFlowDefinitionRegistry, logoutFlowDefinitionRegistry
      • Fields inherited from interface org.apereo.cas.web.flow.CasWebflowConfigurer

        FLOW_ID_LOGIN, FLOW_ID_LOGOUT
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • 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 void doInitialize()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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)
    • Method Detail

      • doInitialize

        protected void doInitialize()
        Specified by:
        doInitialize in class org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer