6

I'm trying to include reCAPTCHA in a React application I'm developing, with Next.js for the server side functionality.

I think I'm fundamentally confused by reCAPTCHA Enterprise.

The former "free" way to register a domain with reCAPTCHA was such that users were given a public reCAPTCHA key, and a private reCAPTCHA key for the backend. That's from using Google's reCAPTCHA v3 as registered via "Admin" at https://www.google.com/recaptcha/admin/create.

Given I have a GCP account, I'm redirected to the reCAPTCHA Enterprise API. Here there is only one key available. Is there no secret key for use in reCAPTCHA Enterprise?

If so, how does one use this? Is there no private key anymore?

1 Answer 1

4

For the Secret key / Back-end Authentication, you will need to create that together with the Service Account.

  1. Create a Service Account
  2. Select the Role reCAPTCHA Enterprise Agent
  3. Click the email address for the service account that you created
  4. Add key, select JSON and click Create
  5. Click Close

For a more detailed steps, check the official documentation here.

I would also recommend reading the quick start page on the reCAPTCHA Enterprise official documentation. It will provide you information what is the best method for your use case and also the keys that is appropriate for your application.

3
  • 2
    My confusion is that "reCAPTCHA Enterprise" is a single key, not two keys?
    – EB2127
    Commented Apr 14, 2021 at 4:36
  • 1
    Correct, since the equivalent secret key would be in the Service Account of the GCP. If you will need a secret key, you will have to use reCaptcha v2 or v3.
    – Alex G
    Commented Apr 20, 2021 at 16:01
  • Thank you for the clarification
    – EB2127
    Commented Apr 21, 2021 at 16:47

Not the answer you're looking for? Browse other questions tagged or ask your own question.