RecaptchaConfig
Configuration interface for Google reCAPTCHA integration.
Implement this interface to provide the necessary keys and enable/disable reCAPTCHA functionality.
The other three members are checks that a verification Google reports as successful must also pass. Each has a default that turns it off, so a verification passes on Google's success alone unless they are overridden. Once configured, a check fails closed: a reply that lacks the field it checks is rejected.
Properties
Indicates whether reCAPTCHA validation is enabled.
The reCAPTCHA v3 action a token must have been issued for, compared exactly, so a token minted for one action cannot be used for another. A reply with another action, or with none (as for a v2 token), is rejected. Null, the default, skips the check.
The hostnames a token may have been solved on, compared case-insensitively with the hostname Google returns. A token from any other hostname, or with none (such as an Android app's), is rejected. Each hostname must be listed: a subdomain does not match its parent.
The lowest reCAPTCHA v3 score that passes, from 0.0 (very likely a bot) to 1.0 (very likely a human); Google suggests starting at 0.5. A lower score, or a reply with none (as for a v2 token), is rejected. Null, the default, skips the check.
The secret key for reCAPTCHA, or null if not set.
The public site key for reCAPTCHA, or null if not set.