public sealed class Auth : Protobuf.IMessage<AttributeContext.Types.Auth>, Protobuf.IBufferMessage
This message defines request authentication attributes. Terminology is
based on the JSON Web Token (JWT) standard, but the terms also
correlate to concepts in other standards.
public Protobuf.Collections.RepeatedField<string> AccessLevels { get; }
A list of access level resource names that allow resources to be
accessed by authenticated requester. It is part of Secure GCP processing
for the incoming request. An access level string has the format:
"//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
public Protobuf.Collections.RepeatedField<string> Audiences { get; }
The intended audience(s) for this authentication information. Reflects
the audience (aud) claim within a JWT. The audience
value(s) depends on the issuer, but typically include one or more of
the following pieces of information:
public Protobuf.WellKnownTypes.Struct Claims { get; set; }
Structured claims presented with the credential. JWTs include
{key: value} pairs for standard and private claims. The following
is a subset of the standard required and optional claims that would
typically be presented for a Google-based JWT:
The authorized presenter of the credential. Reflects the optional
Authorized Presenter (azp) claim within a JWT or the
OAuth client id. For example, a Google Cloud Platform client id looks
as follows: "123456789012.apps.googleusercontent.com".
The authenticated principal. Reflects the issuer (iss) and subject
(sub) claims within a JWT. The issuer and subject should be /
delimited, with / percent-encoded within the subject fragment. For
Google accounts, the principal format is:
"https://accounts.google.com/{id}"
[[["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."],[[["This documentation covers version 2.2.0 of the `Auth` class within the `Google.Rpc.Context` namespace, part of the `Google.Api.CommonProtos` assembly."],["The `Auth` class defines request authentication attributes, aligning with JSON Web Token (JWT) standards and correlating with similar concepts in other standards."],["Key features of the `Auth` class include properties for managing access levels, audiences, claims, the presenter, and the principal, all essential for defining authentication details."],["The class provides fields like `AccessLevelsFieldNumber`, `AudiencesFieldNumber`, `ClaimsFieldNumber`, etc., which are used to identify the field number for each respective property, offering control and flexibility within the `Auth` class."],["The `Auth` class includes methods for object manipulation such as `Clone()`, `Equals()`, `MergeFrom()`, `CalculateSize()`, and `ToString()` enabling diverse interactions with the `Auth` objects."]]],[]]