Class OAuthConfig (2.0.0)

OAuthConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents configuration of OAuth client credential flow for 3rd party API authentication.

Attributes

Name Description
client_id str
Required. The client ID provided by the 3rd party platform.
client_secret str
Optional. The client secret provided by the 3rd party platform.
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 provided by the 3rd party platform to exchange an access token.
scopes MutableSequence[str]
Optional. The OAuth scopes to grant.