- [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/EndUserAuthConfig#SCHEMA_REPRESENTATION)
- [EndUserAuthConfig.Oauth2AuthCodeConfig](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/EndUserAuthConfig#EndUserAuthConfig.Oauth2AuthCodeConfig)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/EndUserAuthConfig#EndUserAuthConfig.Oauth2AuthCodeConfig.SCHEMA_REPRESENTATION)
- [EndUserAuthConfig.Oauth2JwtBearerConfig](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/EndUserAuthConfig#EndUserAuthConfig.Oauth2JwtBearerConfig)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/EndUserAuthConfig#EndUserAuthConfig.Oauth2JwtBearerConfig.SCHEMA_REPRESENTATION)

End-user authentication configuration used for Connection calls. The field values must be the names of context variables in the format `$context.variables.<name_of_variable>`.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "oauth2AuthCodeConfig": { object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/EndUserAuthConfig#EndUserAuthConfig.Oauth2AuthCodeConfig`) }, "oauth2JwtBearerConfig": { object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/EndUserAuthConfig#EndUserAuthConfig.Oauth2JwtBearerConfig`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The auth configuration. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `oauth2AuthCodeConfig` | ``object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/EndUserAuthConfig#EndUserAuthConfig.Oauth2AuthCodeConfig`)`` Oauth 2.0 Authorization Code authentication. |
| `oauth2JwtBearerConfig` | ``object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/EndUserAuthConfig#EndUserAuthConfig.Oauth2JwtBearerConfig`)`` JWT Profile Oauth 2.0 Authorization Grant authentication. |
| End of mutually exclusive fields. ||

## EndUserAuthConfig.Oauth2AuthCodeConfig

Oauth 2.0 Authorization Code authentication configuration.

| JSON representation |
|---|
| ``` { "oauthToken": string } ``` |

| Fields ||
|---|---|
| `oauthToken` | `string` Required. Oauth token parameter name to pass through. Must be in the format `$context.variables.<name_of_variable>`. |

## EndUserAuthConfig.Oauth2JwtBearerConfig

JWT Profile Oauth 2.0 Authorization Grant authentication configuration.

| JSON representation |
|---|
| ``` { "issuer": string, "subject": string, "clientKey": string } ``` |

| Fields ||
|---|---|
| `issuer` | `string` Required. Issuer parameter name to pass through. Must be in the format `$context.variables.<name_of_variable>`. |
| `subject` | `string` Required. Subject parameter name to pass through. Must be in the format `$context.variables.<name_of_variable>`. |
| `clientKey` | `string` Required. Client parameter name to pass through. Must be in the format `$context.variables.<name_of_variable>`. |