Search in sources :

Example 11 with ActionState

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

the class TrustedAuthenticationWebflowConfigurer method doInitialize.

@Override
protected void doInitialize() {
    final Flow flow = getLoginFlow();
    if (flow != null) {
        final EvaluateAction action = createEvaluateAction("remoteUserAuthenticationAction");
        final ActionState actionState = createActionState(flow, CasWebflowConstants.ACTION_ID_REMOTE_TRUSTED_AUTHENTICATION, action);
        createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_SEND_TICKET_GRANTING_TICKET);
        final String currentStartState = getStartState(flow).getId();
        createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_ERROR, currentStartState);
        createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_AUTHENTICATION_FAILURE, CasWebflowConstants.STATE_ID_HANDLE_AUTHN_FAILURE);
        actionState.getExitActionList().add(createEvaluateAction(CasWebflowConstants.ACTION_ID_CLEAR_WEBFLOW_CREDENTIALS));
        registerMultifactorProvidersStateTransitionsIntoWebflow(actionState);
        setStartState(flow, actionState);
    }
}
Also used : EvaluateAction(org.springframework.webflow.action.EvaluateAction) ActionState(org.springframework.webflow.engine.ActionState) Flow(org.springframework.webflow.engine.Flow)

Example 12 with ActionState

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

the class InterruptWebflowConfigurer method createInquireActionState.

private void createInquireActionState(final Flow flow) {
    final ActionState actionState = createActionState(flow, STATE_ID_INQUIRE_INTERRUPT_ACTION, createEvaluateAction(STATE_ID_INQUIRE_INTERRUPT_ACTION));
    final String target = getRealSubmissionState(flow).getTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS).getTargetStateId();
    final Transition noInterruptTransition = createTransition(CasWebflowConstants.TRANSITION_ID_NO, target);
    actionState.getTransitionSet().add(noInterruptTransition);
    final Transition yesInterruptTransition = createTransition(CasWebflowConstants.TRANSITION_ID_YES, VIEW_ID_INTERRUPT_VIEW);
    actionState.getTransitionSet().add(yesInterruptTransition);
}
Also used : Transition(org.springframework.webflow.engine.Transition) ActionState(org.springframework.webflow.engine.ActionState)

Example 13 with ActionState

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

the class InterruptWebflowConfigurer method createTransitionStateToInterrupt.

private void createTransitionStateToInterrupt(final Flow flow) {
    final ActionState submit = getRealSubmissionState(flow);
    createTransitionForState(submit, CasWebflowConstants.TRANSITION_ID_SUCCESS, STATE_ID_INQUIRE_INTERRUPT_ACTION, true);
}
Also used : ActionState(org.springframework.webflow.engine.ActionState)

Example 14 with ActionState

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

the class ScimWebflowConfigurer method doInitialize.

@Override
protected void doInitialize() {
    final Flow flow = getLoginFlow();
    if (flow != null) {
        final ActionState tgtAction = getState(flow, CasWebflowConstants.STATE_ID_SEND_TICKET_GRANTING_TICKET, ActionState.class);
        tgtAction.getExitActionList().add(createEvaluateAction("principalScimProvisionerAction"));
    }
}
Also used : ActionState(org.springframework.webflow.engine.ActionState) Flow(org.springframework.webflow.engine.Flow)

Example 15 with ActionState

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

the class SpengoWebflowConfigurer method doInitialize.

@Override
protected void doInitialize() {
    final Flow flow = getLoginFlow();
    if (flow != null) {
        createStartSpnegoAction(flow);
        createEvaluateSpnegoClientAction(flow);
        final ActionState spnego = createSpnegoActionState(flow);
        registerMultifactorProvidersStateTransitionsIntoWebflow(spnego);
        augmentWebflowToStartSpnego(flow);
    }
}
Also used : ActionState(org.springframework.webflow.engine.ActionState) Flow(org.springframework.webflow.engine.Flow)

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