public sealed class OidcToken : IMessage<OidcToken>, IEquatable<OidcToken>, IDeepCloneable<OidcToken>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Tasks v2beta3 API class OidcToken.
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-05-02 UTC."],[[["The `OidcToken` class in the Google Cloud Tasks v2beta3 API is used to generate OpenID Connect tokens for authorization."],["It is available in multiple versions, with `3.0.0-beta07` being the latest release, providing reference documentation and code samples."],["The class inherits from `object` and implements interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and it is a part of the `Google.Cloud.Tasks.V2Beta3` namespace."],["`OidcToken` has properties for setting the `Audience` and `ServiceAccountEmail` needed for generating the token, allowing for custom specifications."],["The use of this token allows validation in various endpoints, including those for Cloud Run."]]],[]]