protected boolean isMultifactorAuthenticationAllowed(final RequestContext requestContext) throws Throwable {
        val user = PasswordlessWebflowUtils.getPasswordlessAuthenticationAccount(requestContext, PasswordlessUserAccount.class);
        val mfaTriggersAvailable = !multifactorTriggerSelectionStrategy.getMultifactorAuthenticationTriggers().isEmpty();
        return mfaTriggersAvailable
            && shouldActivateMultifactorAuthenticationFor(requestContext, user)
            && isMultifactorAuthenticationPossible(requestContext).isPresent();
    }
This is {@link PreparePasswordlessSelectionMenuAction}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-passwordless-webflow/src/main/java/org/apereo/cas/web/flow/PreparePasswordlessSelectionMenuAction.java