public sealed class OAuthToken : IMessage<OAuthToken>, IEquatable<OAuthToken>, IDeepCloneable<OAuthToken>, IBufferMessage, IMessage
Contains information needed for generating an
OAuth token.
This type of authorization should generally only be used when calling Google
APIs hosted on *.googleapis.com.
Service account email
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["This webpage details the `OAuthToken` class, which is used for generating OAuth tokens primarily for Google APIs on `*.googleapis.com`."],["The `OAuthToken` class includes properties for `Scope` and `ServiceAccountEmail`, allowing customization of the OAuth access token generation process."],["The latest version of `OAuthToken` is `3.5.0`, with versions back to `2.2.0` available in the documentation."],["The `OAuthToken` class implements multiple interfaces, including `IMessage`, `IEquatable`, and `IDeepCloneable`, and inherits from `Object`."],["The default scope, if not specified, for OAuth token generation will be \"[https://www.googleapis.com/auth/cloud-platform\"](https://www.googleapis.com/auth/cloud-platform")."]]],[]]