@Override
    protected void doInitialize() {
        val flow = getLoginFlow();
        if (flow != null) {
            val actionState = createActionState(flow, CasWebflowConstants.STATE_ID_TOKEN_AUTHENTICATION_CHECK,
                createEvaluateAction(CasWebflowConstants.ACTION_ID_TOKEN_AUTHENTICATION_ACTION));
            actionState.getTransitionSet().add(createTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS,
                CasWebflowConstants.STATE_ID_CREATE_TICKET_GRANTING_TICKET));
            actionState.getExitActionList().add(createEvaluateAction(CasWebflowConstants.ACTION_ID_CLEAR_WEBFLOW_CREDENTIALS));
            createStateDefaultTransition(actionState, getStartState(flow).getId());
            setStartState(flow, actionState);
        }
    }
The {@link TokenWebflowConfigurer} is responsible for
adjusting the CAS webflow context for token authentication support integration.

@author Misagh Moayyed
@since 4.2
support/cas-server-support-token-webflow/src/main/java/org/apereo/cas/web/flow/TokenWebflowConfigurer.java