pub struct GoogleFirebaseAppcheckV1betaRecaptchaConfig {
pub min_valid_score: Option<f32>,
pub name: Option<String>,
pub site_secret: Option<String>,
pub site_secret_set: Option<bool>,
pub token_ttl: Option<Duration>,
}Expand description
An app’s reCAPTCHA v3 configuration object. This configuration is used by ExchangeRecaptchaToken to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls certain properties of the returned AppCheckToken, such as its ttl.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- apps recaptcha config get projects (response)
- apps recaptcha config patch projects (request|response)
Fields§
§min_valid_score: Option<f32>Specifies a minimum score required for a reCAPTCHA token to be considered valid. If its score is greater than or equal to this value, it will be accepted; otherwise, it will be rejected. The value must be between 0.0 and 1.0. The default value is 0.5.
name: Option<String>Required. The relative resource name of the reCAPTCHA v3 configuration object, in the format: projects/{project_number}/apps/{app_id}/recaptchaConfig
site_secret: Option<String>Required. 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.
site_secret_set: Option<bool>Output 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.
token_ttl: Option<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.
Trait Implementations§
Source§impl Clone for GoogleFirebaseAppcheckV1betaRecaptchaConfig
impl Clone for GoogleFirebaseAppcheckV1betaRecaptchaConfig
Source§fn clone(&self) -> GoogleFirebaseAppcheckV1betaRecaptchaConfig
fn clone(&self) -> GoogleFirebaseAppcheckV1betaRecaptchaConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more