@Override
    public void postInitialization(final ConfigurableApplicationContext applicationContext) {
        val duoConfig = casProperties.getAuthn().getMfa().getDuo();
        val passwordlessEnabled = duoConfig.stream().anyMatch(DuoSecurityMultifactorAuthenticationProperties::isPasswordlessAuthenticationEnabled);
        if (passwordlessEnabled) {
            val flow = getLoginFlow();
            val verifyAccountState = getState(flow, CasWebflowConstants.STATE_ID_PASSWORDLESS_VERIFY_ACCOUNT);
            FunctionUtils.doIfNotNull(verifyAccountState, __ -> {
                val originalTargetState = verifyAccountState.getTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS).getTargetStateId();
                createTransitionForState(verifyAccountState, CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_DUO_PASSWORDLESS_VERIFY, true);
                val actionState = createActionState(flow, CasWebflowConstants.STATE_ID_DUO_PASSWORDLESS_VERIFY, CasWebflowConstants.ACTION_ID_DUO_PASSWORDLESS_VERIFY);
                val acceptedState = getState(flow, CasWebflowConstants.STATE_ID_ACCEPT_PASSWORDLESS_AUTHENTICATION)
                    .getTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS).getTargetStateId();
                createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_SUCCESS, acceptedState);
                createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_ERROR, originalTargetState);
            });
        }
    }
This is {@link DuoSecurityMultifactorWebflowConfigurer}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/web/flow/DuoSecurityMultifactorWebflowConfigurer.java