- JSON representation
- ApiKeyConfig
- ApiKeyConfig.RequestLocation
- OAuthConfig
- OAuthConfig.OauthGrantType
- ServiceAgentIdTokenAuthConfig
- ServiceAccountAuthConfig
- BearerTokenConfig
Authentication information required for API calls.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field auth_config. The auth configuration. auth_config can be only one of the following: |
|
apiKeyConfig |
Optional. Config for API key auth. |
oauthConfig |
Optional. Config for OAuth. |
serviceAgentIdTokenAuthConfig |
Optional. Config for ID token auth generated from CES service agent. |
serviceAccountAuthConfig |
Optional. Config for service account authentication. |
bearerTokenConfig |
Optional. Config for bearer token auth. |
ApiKeyConfig
Configurations for authentication with API key.
| JSON representation |
|---|
{
"keyName": string,
"apiKeySecretVersion": string,
"requestLocation": enum ( |
| Fields | |
|---|---|
keyName |
Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key= |
apiKeySecretVersion |
Required. The name of the SecretManager secret version resource storing the API key. Format: Note: You should grant |
requestLocation |
Required. Key location in the request. |
ApiKeyConfig.RequestLocation
The location of the API key in the request.
| Enums | |
|---|---|
REQUEST_LOCATION_UNSPECIFIED |
Unspecified. This value should not be unused. |
HEADER |
Represents the key in http header. |
QUERY_STRING |
Represents the key in query string. |
OAuthConfig
Configurations for authentication with OAuth.
| JSON representation |
|---|
{
"oauthGrantType": enum ( |
| Fields | |
|---|---|
oauthGrantType |
Required. OAuth grant types. |
clientId |
Required. The client ID from the OAuth provider. |
clientSecretVersion |
Required. The name of the SecretManager secret version resource storing the client secret. Format: Note: You should grant |
tokenEndpoint |
Required. The token endpoint in the OAuth provider to exchange for an access token. |
scopes[] |
Optional. The OAuth scopes to grant. |
OAuthConfig.OauthGrantType
OAuth grant types. Only client credential grant is supported.
| Enums | |
|---|---|
OAUTH_GRANT_TYPE_UNSPECIFIED |
Unspecified. Defaults to CLIENT_CREDENTIAL. |
CLIENT_CREDENTIAL |
Represents the client credential flow. |
ServiceAgentIdTokenAuthConfig
This type has no fields.
Configurations for authentication with ID token generated from service agent.
ServiceAccountAuthConfig
Configurations for authentication using a custom service account.
| JSON representation |
|---|
{ "serviceAccount": string } |
| Fields | |
|---|---|
serviceAccount |
Required. The email address of the service account used for authenticatation. CES uses this service account to exchange an access token and the access token is then sent in the The service account must have the |
BearerTokenConfig
Configurations for authentication with a bearer token.
| JSON representation |
|---|
{ "token": string } |
| Fields | |
|---|---|
token |
Required. The bearer token. Must be in the format |