Wasim's Site

Liferay OSGi Config Generator

Generate Liferay OSGi .config files for osgi/configs. Pick a component for a typed property form, or use custom mode for any PID. Correct Felix format.

1. Choose a component

2. Configure properties

Number of allowed attempts before a CAPTCHA is required. 0 always shows it; a negative value disables it.

Integer

Google reCAPTCHA site key (public).

String

Google reCAPTCHA secret key (private).

String

URL of the reCAPTCHA client script.

String

Server-side reCAPTCHA verification endpoint.

String

Add another property

3. Generated com.liferay.captcha.configuration.CaptchaConfiguration.config

Drop this file into [Liferay Home]/osgi/configs/.

Prefer the plain .cfg format? (com.liferay.captcha.configuration.CaptchaConfiguration.cfg)

The .config format is preferred — it carries types and supports multi-valued properties. Use .cfg only for simple scalar values.

Liferay CAPTCHA / reCAPTCHA OSGi Configuration

Configures the CAPTCHA engine and Google reCAPTCHA keys used on account and password forms.

PID: com.liferay.captcha.configuration.CaptchaConfiguration

Properties

PropertyTypeDefaultDescription
maxChallengesInteger1Number of allowed attempts before a CAPTCHA is required. 0 always shows it; a negative value disables it.
reCaptchaPublicKeyStringGoogle reCAPTCHA site key (public).
reCaptchaPrivateKeyStringGoogle reCAPTCHA secret key (private).
reCaptchaScriptURLStringhttps://www.google.com/recaptcha/api.jsURL of the reCAPTCHA client script.
reCaptchaVerifyURLStringhttps://www.google.com/recaptcha/api/siteverifyServer-side reCAPTCHA verification endpoint.

These are the common, verified properties. Add any others for this PID with the custom-property row in the form above, then drop the file into [Liferay Home]/osgi/configs.