public boolean isLoginFormViewable(final WebEngineContext vars) {
        val requestContext = RequestContextHolder.getRequestContext();
        val providers = webflowExecutionPlan.getWebflowLoginContextProviders();
        return requestContext != null
            && (WebUtils.isCasLoginFormViewable(requestContext) || providers.isEmpty()
            || providers.stream().noneMatch(provider -> provider.isLoginFormViewable(requestContext)));
    }
Is login form viewable?.

@param vars the vars
@return true/false
support/cas-server-support-thymeleaf-core/src/main/java/org/apereo/cas/services/web/CasThymeleafTemplatesDirector.java