OAuthConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Config for authentication with OAuth.
Attributes |
|
---|---|
Name | Description |
oauth_grant_type |
google.cloud.dialogflowcx_v3beta1.types.Tool.Authentication.OAuthConfig.OauthGrantType
Required. OAuth grant types. |
client_id |
str
Required. The client ID from the OAuth provider. |
client_secret |
str
Optional. The client secret from the OAuth provider. If the secret_version_for_client_secret field is set, this
field will be ignored.
|
secret_version_for_client_secret |
str
Optional. The name of the SecretManager secret version resource storing the client secret. If this field is set, the client_secret field will be ignored. Format:
projects/{project}/secrets/{secret}/versions/{version}
|
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.