Search in sources :

Example 51 with ActionState

use of org.springframework.webflow.engine.ActionState in project cas by apereo.

the class RemoteAddressWebflowConfigurer method doInitialize.

@Override
protected void doInitialize() {
    final Flow flow = getLoginFlow();
    if (flow != null) {
        final ActionState actionState = createActionState(flow, "startAuthenticate", createEvaluateAction("remoteAddressCheck"));
        actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_SEND_TICKET_GRANTING_TICKET));
        actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_ERROR, getStartState(flow).getId()));
        actionState.getExitActionList().add(createEvaluateAction(CasWebflowConstants.ACTION_ID_CLEAR_WEBFLOW_CREDENTIALS));
        registerMultifactorProvidersStateTransitionsIntoWebflow(actionState);
    }
}
Also used : ActionState(org.springframework.webflow.engine.ActionState) Flow(org.springframework.webflow.engine.Flow)

Example 52 with ActionState

use of org.springframework.webflow.engine.ActionState in project cas by apereo.

the class SpengoWebflowConfigurer method augmentWebflowToStartSpnego.

private void augmentWebflowToStartSpnego(final Flow flow) {
    final ActionState state = getState(flow, CasWebflowConstants.STATE_ID_INIT_LOGIN_FORM, ActionState.class);
    createTransitionForState(state, CasWebflowConstants.TRANSITION_ID_SUCCESS, START_SPNEGO_AUTHENTICATE, true);
}
Also used : ActionState(org.springframework.webflow.engine.ActionState)

Example 53 with ActionState

use of org.springframework.webflow.engine.ActionState in project cas by apereo.

the class SpengoWebflowConfigurer method createSpnegoActionState.

private ActionState createSpnegoActionState(final Flow flow) {
    final ActionState spnego = createActionState(flow, SPNEGO, createEvaluateAction(SPNEGO));
    final TransitionSet transitions = spnego.getTransitionSet();
    transitions.add(createTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_SEND_TICKET_GRANTING_TICKET));
    transitions.add(createTransition(CasWebflowConstants.TRANSITION_ID_ERROR, CasWebflowConstants.STATE_ID_VIEW_LOGIN_FORM));
    transitions.add(createTransition(CasWebflowConstants.TRANSITION_ID_AUTHENTICATION_FAILURE, CasWebflowConstants.STATE_ID_VIEW_LOGIN_FORM));
    spnego.getExitActionList().add(createEvaluateAction(CasWebflowConstants.ACTION_ID_CLEAR_WEBFLOW_CREDENTIALS));
    return spnego;
}
Also used : TransitionSet(org.springframework.webflow.engine.TransitionSet) ActionState(org.springframework.webflow.engine.ActionState)

Example 54 with ActionState

use of org.springframework.webflow.engine.ActionState in project cas by apereo.

the class SurrogateWebflowConfigurer method createSurrogateAuthorizationActionState.

private void createSurrogateAuthorizationActionState(final Flow flow) {
    final ActionState actionState = getState(flow, CasWebflowConstants.STATE_ID_GENERATE_SERVICE_TICKET, ActionState.class);
    actionState.getEntryActionList().add(createEvaluateAction("surrogateAuthorizationCheck"));
}
Also used : ActionState(org.springframework.webflow.engine.ActionState)

Example 55 with ActionState

use of org.springframework.webflow.engine.ActionState in project cas by apereo.

the class SurrogateWebflowConfigurer method createTransitionToInjectSurrogateIntoFlow.

private void createTransitionToInjectSurrogateIntoFlow(final Flow flow) {
    final ActionState actionState = getState(flow, CasWebflowConstants.STATE_ID_REAL_SUBMIT, ActionState.class);
    createTransitionForState(actionState, VIEW_ID_SURROGATE_VIEW, VIEW_ID_SURROGATE_VIEW, true);
}
Also used : ActionState(org.springframework.webflow.engine.ActionState)

Aggregations

ActionState (org.springframework.webflow.engine.ActionState)59 Flow (org.springframework.webflow.engine.Flow)17 ViewState (org.springframework.webflow.engine.ViewState)12 Transition (org.springframework.webflow.engine.Transition)6 Action (org.springframework.webflow.execution.Action)4 ArrayList (java.util.ArrayList)2 EvaluateAction (org.springframework.webflow.action.EvaluateAction)2 SubflowState (org.springframework.webflow.engine.SubflowState)2 BinderConfiguration (org.springframework.webflow.engine.builder.BinderConfiguration)2 DefaultTargetStateResolver (org.springframework.webflow.engine.support.DefaultTargetStateResolver)2 AccountLockedException (javax.security.auth.login.AccountLockedException)1 AccountNotFoundException (javax.security.auth.login.AccountNotFoundException)1 CredentialExpiredException (javax.security.auth.login.CredentialExpiredException)1 FailedLoginException (javax.security.auth.login.FailedLoginException)1 PrincipalException (org.apereo.cas.authentication.PrincipalException)1 UnauthorizedAuthenticationException (org.apereo.cas.authentication.adaptive.UnauthorizedAuthenticationException)1 AccountDisabledException (org.apereo.cas.authentication.exceptions.AccountDisabledException)1 AccountPasswordMustChangeException (org.apereo.cas.authentication.exceptions.AccountPasswordMustChangeException)1 InvalidLoginLocationException (org.apereo.cas.authentication.exceptions.InvalidLoginLocationException)1 InvalidLoginTimeException (org.apereo.cas.authentication.exceptions.InvalidLoginTimeException)1