OAuthConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)Configurations for authentication with OAuth.
Attributes |
|
|---|---|
| Name | Description |
oauth_grant_type |
google.cloud.ces_v1beta.types.OAuthConfig.OauthGrantType
Required. OAuth grant types. |
client_id |
str
Required. The client ID from the OAuth provider. |
client_secret_version |
str
Required. The name of the SecretManager secret version resource storing the client secret. Format: projects/{project}/secrets/{secret}/versions/{version}
Note: You should grant
roles/secretmanager.secretAccessor role to the CES
service agent
service-.
|
token_endpoint |
str
Required. The token endpoint in the OAuth provider to exchange for an access token. |
scopes |
MutableSequence[str]
Optional. The OAuth scopes to grant. |
Classes
OauthGrantType
OauthGrantType(value)OAuth grant types. Only client credential
grant <https://oauth.net/2/grant-types/client-credentials>__ is
supported.