Skip to main content

recaptcha_v3_config

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

Overview

Namerecaptcha_v3_config
TypeResource
Idfirebase.appcheck.recaptcha_v3_config

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringRequired. The relative resource name of the reCAPTCHA v3 configuration object, in the format: projects/{project_number}/apps/{app_id}/recaptchaV3Config
siteSecretstringRequired. Input only. The site secret used to identify your service for reCAPTCHA v3 verification. For security reasons, this field will never be populated in any response.
siteSecretSetbooleanOutput only. Whether the site_secret field was previously set. Since we will never return the site_secret field, this field is the only way to find out whether it was previously set.
tokenTtlstring (google-duration)Specifies the duration for which App Check tokens exchanged from reCAPTCHA tokens will be valid. If unset, a default value of 1 day 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 RecaptchaV3Config for the specified app. For security reasons, the site_secret field is never populated in the response.
batch_getselectprojectsIdnamesAtomically gets the RecaptchaV3Configs for the specified list of apps. For security reasons, the site_secret field is never populated in the response.
patchupdateprojectsId, appsIdupdateMaskUpdates the RecaptchaV3Config for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA V3 tokens for App Check tokens. For security reasons, the site_secret field is never populated in the response.

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 RecaptchaV3Config for the specified app. For security reasons, the site_secret field is never populated in the response.

SELECT
name,
siteSecret,
siteSecretSet,
tokenTtl
FROM firebase.appcheck.recaptcha_v3_config
WHERE projectsId = '{{ projectsId }}' -- required
AND appsId = '{{ appsId }}' -- required;

UPDATE examples

Updates the RecaptchaV3Config for the specified app. While this configuration is incomplete or invalid, the app will be unable to exchange reCAPTCHA V3 tokens for App Check tokens. For security reasons, the site_secret field is never populated in the response.

UPDATE firebase.appcheck.recaptcha_v3_config
SET
data__tokenTtl = '{{ tokenTtl }}',
data__name = '{{ name }}',
data__siteSecret = '{{ siteSecret }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND appsId = '{{ appsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
siteSecret,
siteSecretSet,
tokenTtl;