REST Resource: projects.apps.recaptchaEnterpriseConfig

資源:RecaptchaEnterpriseConfig

應用程式的 reCAPTCHA Enterprise 設定物件。ExchangeRecaptchaEnterpriseToken 會使用這項設定,驗證 reCAPTCHA Enterprise 核發給應用程式的 reCAPTCHA 權杖。它也會控制傳回的 AppCheckToken 的特定屬性,例如其 ttl

JSON 表示法
{
  "name": string,
  "tokenTtl": string,
  "siteKey": string
}
欄位
name

string

必要欄位。reCAPTCHA Enterprise 設定物件的相對資源名稱,格式為:

projects/{project_number}/apps/{app_id}/recaptchaEnterpriseConfig
tokenTtl

string (Duration format)

指定從 reCAPTCHA Enterprise 權杖交換 App Check 權杖的效期。如未設定,系統會採用預設值 1 小時。必須介於 30 分鐘到 7 天 (含首尾)。

時間長度以秒為單位,最多可有 9 個小數位數,並結尾為「s」。例如:"3.5s"

siteKey

string

這個以分數計算的網站金鑰是在 reCAPTCHA Enterprise 中建立,用於叫用 reCAPTCHA 並為應用程式產生 reCAPTCHA 權杖

重要事項:這「不是」siteSecret (與 reCAPTCHA v3 相同),而是以分數為基礎的 reCAPTCHA Enterprise 網站金鑰。

方法

batchGet

會以整體方式取得指定應用程式清單的 RecaptchaEnterpriseConfig

get

取得指定應用程式的 RecaptchaEnterpriseConfig

patch

更新指定應用程式的 RecaptchaEnterpriseConfig