public static void putRecaptchaPropertiesFlowScope(final RequestContext context, final GoogleRecaptchaProperties googleRecaptcha) {
        val flowScope = context.getFlowScope();
        if (googleRecaptcha.isEnabled()) {
            flowScope.put("recaptchaSiteKey", SpringExpressionLanguageValueResolver.getInstance().resolve(googleRecaptcha.getSiteKey()));
            flowScope.put("recaptchaInvisible", googleRecaptcha.isInvisible());
            flowScope.put("recaptchaPosition", googleRecaptcha.getPosition());
            flowScope.put("recaptchaVersion", googleRecaptcha.getVersion().name().toLowerCase(Locale.ENGLISH));
        }
    }
Put recaptcha settings flow scope.

@param context         the context
@param googleRecaptcha the properties
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java