- [JSON representation](https://docs.cloud.google.com/tasks/docs/reference/rest/v2/OAuthToken#SCHEMA_REPRESENTATION)

Contains information needed for generating an [OAuth token](https://developers.google.com/identity/protocols/OAuth2). This type of authorization should generally only be used when calling Google APIs hosted on \*.googleapis.com.

| JSON representation |
|---|
| ``` { "serviceAccountEmail": string, "scope": string } ``` |

| Fields ||
|---|---|
| `serviceAccountEmail` | `string` [Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OAuth token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account. |
| `scope` | `string` OAuth scope to be used for generating OAuth access token. If not specified, "https://www.googleapis.com/auth/cloud-platform" will be used. |