@Override
 protected void doInitialize() throws Exception {
   final Flow flow = getLoginFlow();
   final ActionState actionState =
       createActionState(flow, "startAuthenticate", createEvaluateAction("remoteAddressCheck"));
   actionState
       .getTransitionSet()
       .add(
           createTransition(
               CasWebflowConstants.TRANSITION_ID_SUCCESS,
               CasWebflowConstants.TRANSITION_ID_SEND_TICKET_GRANTING_TICKET));
   actionState
       .getTransitionSet()
       .add(
           createTransition(CasWebflowConstants.TRANSITION_ID_ERROR, getStartState(flow).getId()));
 }
Example #2
0
 @Override
 protected void doInitialize() throws Exception {
   final Flow flow = getLoginFlow();
   final ActionState actionState =
       createActionState(
           flow, "tokenAuthenticationCheck", createEvaluateAction("tokenAuthenticationAction"));
   actionState
       .getTransitionSet()
       .add(
           createTransition(
               CasWebflowConstants.TRANSITION_ID_SUCCESS,
               CasWebflowConstants.TRANSITION_ID_SEND_TICKET_GRANTING_TICKET));
   actionState.getExitActionList().add(createEvaluateAction("clearWebflowCredentialsAction"));
   registerMultifactorProvidersStateTransitionsIntoWebflow(actionState);
   createStateDefaultTransition(actionState, getStartState(flow).getId());
   setStartState(flow, actionState);
 }