public sealed class ClientSettings : IMessage<ClientSettings>, IEquatable<ClientSettings>, IDeepCloneable<ClientSettings>, IBufferMessage, IMessageReference documentation and code samples for the Google Cloud reCAPTCHA Enterprise v1 API class ClientSettings.
Configuration for clients to protect with reCAPTCHA.
Implements
IMessageClientSettings, IEquatableClientSettings, IDeepCloneableClientSettings, IBufferMessage, IMessageNamespace
Google.Cloud.RecaptchaEnterprise.V1Assembly
Google.Cloud.RecaptchaEnterprise.V1.dll
Constructors
ClientSettings()
public ClientSettings()ClientSettings(ClientSettings)
public ClientSettings(ClientSettings other)| Parameter | |
|---|---|
| Name | Description |
other |
ClientSettings |
Properties
AllowAllDomains
public bool AllowAllDomains { get; set; }Optional. If set to true, it means allowed_domains are not enforced.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
AllowedDomains
public RepeatedField<string> AllowedDomains { get; }Optional. Domains or subdomains of websites allowed to use the policy. All
subdomains of an allowed domain are automatically allowed. A valid domain
requires a host and must not include any path, port, query or fragment.
Examples: 'example.com' or 'subdomain.example.com'
Each policy supports a maximum of 250 domains. To use a policy on more
domains, set allow_all_domains to true. When this is set, you are
responsible for validating the hostname by checking the
token_properties.hostname field in each assessment response against your
list of allowed domains.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldstring |
|
ProtectedEndpointGroup
public ProtectedEndpointGroup ProtectedEndpointGroup { get; set; }Optional. Configuration for all API endpoints to protect with reCAPTCHA. If this field is not set, reCAPTCHA will not automatically request tokens on any API endpoints.
| Property Value | |
|---|---|
| Type | Description |
ProtectedEndpointGroup |
|