Skip to content

Google reCAPTCHA v2

Scott Ouellette edited this page Nov 14, 2018 · 2 revisions

TOC:


As of PR #3006 being merged, our user registration form now utilizes a reCAPTCHA v2.

For local development the two necessary settings: REFINERY_GOOGLE_RECAPTCHA_SITE_KEY & REFINERY_GOOGLE_RECAPTCHA_SECRET_KEY default to "test" keys provided by Google as we don't need this protection in place locally.

Acquiring the Keys:

  • Navigate to https://www.google.com/recaptcha/admin and log in with a google account
  • Register a new site specifying the domains that you wish to associate the given reCAPTCHA v2 with. NOTE: Any sub-domains of the domain you've provided will also be able to utilize this reCAPTCHA v2.
    • screen shot 2018-10-17 at 10 36 00 am

Utilizing the Keys:

  • Once you've registered a site, you should be able to view your Site Key and Secret Key
    • screen shot 2018-10-17 at 10 36 55 am
  • These values should then be used to populate the corresponding keys (REFINERY_GOOGLE_RECAPTCHA_SITE_KEY & REFINERY_GOOGLE_RECAPTCHA_SECRET_KEY) in config.yaml.erb
  • You are now all set to commence your AWS deployment!
  • Once your Refinery instance is deployed, the instance's user registration form will be reCAPTCHA-v2-ified!
    • screen shot 2018-09-18 at 4 00 21 pm