Skip to main content

recaptcha_enterprise_config

Creates, updates, deletes, gets or lists a recaptcha_enterprise_config resource.

Overview

Namerecaptcha_enterprise_config
TypeResource
Idfirebase.appcheck.recaptcha_enterprise_config

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringRequired. The relative resource name of the reCAPTCHA Enterprise configuration object, in the format: projects/{project_number}/apps/{app_id}/recaptchaEnterpriseConfig
siteKeystringThe score-based site key created in reCAPTCHA Enterprise used to invoke reCAPTCHA and generate the reCAPTCHA tokens for your application. Important: This is not the site_secret (as it is in reCAPTCHA v3), but rather your score-based reCAPTCHA Enterprise site key.
tokenTtlstring (google-duration)Specifies the duration for which App Check tokens exchanged from reCAPTCHA Enterprise tokens will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, appsIdGets the RecaptchaEnterpriseConfig for the specified app.
batch_getselectprojectsIdnamesAtomically gets the RecaptchaEnterpriseConfigs for the specified list of apps.
patchupdateprojectsId, appsIdupdateMaskUpdates the RecaptchaEnterpriseConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA Enterprise tokens for App Check tokens.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
appsIdstring
projectsIdstring
namesstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the RecaptchaEnterpriseConfig for the specified app.

SELECT
name,
siteKey,
tokenTtl
FROM firebase.appcheck.recaptcha_enterprise_config
WHERE projectsId = '{{ projectsId }}' -- required
AND appsId = '{{ appsId }}' -- required;

UPDATE examples

Updates the RecaptchaEnterpriseConfig for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA Enterprise tokens for App Check tokens.

UPDATE firebase.appcheck.recaptcha_enterprise_config
SET
data__name = '{{ name }}',
data__tokenTtl = '{{ tokenTtl }}',
data__siteKey = '{{ siteKey }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND appsId = '{{ appsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
siteKey,
tokenTtl;