use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class SurrogateWebflowConfigurer method createSurrogateSelectionActionState.
private void createSurrogateSelectionActionState(final Flow flow) {
final ActionState selectSurrogate = createActionState(flow, "selectSurrogate", selectSurrogateAction);
createTransitionForState(selectSurrogate, CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_REAL_SUBMIT);
}
use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class WsFederationWebflowConfigurer method doInitialize.
@Override
protected void doInitialize() {
final Flow flow = getLoginFlow();
if (flow != null) {
createStopWebflowViewState(flow);
final ActionState actionState = createActionState(flow, WS_FEDERATION_ACTION, createEvaluateAction(WS_FEDERATION_ACTION));
createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_SEND_TICKET_GRANTING_TICKET);
createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_REDIRECT, WS_FEDERATION_REDIRECT);
final String currentStartState = getStartState(flow).getId();
createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_PROCEED, currentStartState);
createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_AUTHENTICATION_FAILURE, CasWebflowConstants.STATE_ID_HANDLE_AUTHN_FAILURE);
createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_STOP, CasWebflowConstants.STATE_ID_STOP_WEBFLOW);
registerMultifactorProvidersStateTransitionsIntoWebflow(actionState);
setStartState(flow, actionState);
}
}
use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class TokenWebflowConfigurer method doInitialize.
@Override
protected void doInitialize() {
final Flow flow = getLoginFlow();
if (flow != null) {
final ActionState actionState = createActionState(flow, "tokenAuthenticationCheck", createEvaluateAction("tokenAuthenticationAction"));
actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_SEND_TICKET_GRANTING_TICKET));
actionState.getExitActionList().add(createEvaluateAction(CasWebflowConstants.ACTION_ID_CLEAR_WEBFLOW_CREDENTIALS));
registerMultifactorProvidersStateTransitionsIntoWebflow(actionState);
createStateDefaultTransition(actionState, getStartState(flow).getId());
setStartState(flow, actionState);
}
}
use of org.springframework.webflow.engine.ActionState in project cas by apereo.
the class X509WebflowConfigurer method doInitialize.
@Override
protected void doInitialize() {
final Flow flow = getLoginFlow();
if (flow != null) {
final ActionState actionState = createActionState(flow, EVENT_ID_START_X509, createEvaluateAction("x509Check"));
actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_SEND_TICKET_GRANTING_TICKET));
actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_WARN, CasWebflowConstants.TRANSITION_ID_WARN));
actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_ERROR, CasWebflowConstants.STATE_ID_VIEW_LOGIN_FORM));
actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_AUTHENTICATION_FAILURE, CasWebflowConstants.STATE_ID_VIEW_LOGIN_FORM));
actionState.getExitActionList().add(createEvaluateAction(CasWebflowConstants.ACTION_ID_CLEAR_WEBFLOW_CREDENTIALS));
registerMultifactorProvidersStateTransitionsIntoWebflow(actionState);
final ActionState state = getState(flow, CasWebflowConstants.STATE_ID_INIT_LOGIN_FORM, ActionState.class);
createTransitionForState(state, CasWebflowConstants.TRANSITION_ID_SUCCESS, EVENT_ID_START_X509, true);
}
}
Aggregations