public sealed class OidcToken : IMessage<OidcToken>, IEquatable<OidcToken>, IDeepCloneable<OidcToken>, IBufferMessage, IMessage
Contains information needed for generating an
OpenID Connect
token.
This type of authorization can be used for many scenarios, including
calling Cloud Run, or endpoints where you intend to validate the token
yourself.
Service account email
to be used for generating OIDC 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-03-21 UTC."],[[["The `OidcToken` class, part of the `Google.Cloud.Tasks.V2Beta3` namespace, is used for generating OpenID Connect tokens for authorization in various scenarios, such as calling Cloud Run."],["The `OidcToken` class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, providing functionality for message handling, equality checks, deep cloning, and buffer manipulation."],["The class has two constructors: a default constructor `OidcToken()` and another that takes an existing `OidcToken` instance as a parameter, `OidcToken(OidcToken other)`."],["`OidcToken` includes properties like `Audience`, which specifies the audience for the generated OIDC token, defaulting to the target URI if not specified, and `ServiceAccountEmail`, which is the service account email used to generate the OIDC token, needing to be within the same project as the queue."],["The latest version is 3.0.0-beta07."]]],[]]