protected static boolean isLoginFlowActive(final RequestContext requestContext) {
        val currentFlowId = Optional.ofNullable(requestContext.getActiveFlow())
            .map(FlowDefinition::getId).orElse("unknown");
        return currentFlowId.equalsIgnoreCase(CasWebflowConfigurer.FLOW_ID_LOGIN);
    }
Is login flow active.

@param requestContext the request context
@return true/false
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/actions/BaseCasWebflowAction.java