How do the keys work with reCAPTCHA v3 Enterprise?
P

1

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?

Parathyroid answered 12/4, 2021 at 20:2 Comment(0)
H
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.

Hewett answered 13/4, 2021 at 8:26 Comment(3)
My confusion is that "reCAPTCHA Enterprise" is a single key, not two keys?Parathyroid
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.Hewett
Thank you for the clarificationParathyroid

© 2022 - 2024 — McMap. All rights reserved.