Send feedback
Class AuthRequirement (2.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.0 keyboard_arrow_down
public sealed class AuthRequirement : Protobuf.IMessage<AuthRequirement>, Protobuf.IBufferMessage
Inheritance
Object >
AuthRequirement
Namespace
Google.Api
Assembly
Google.Api.CommonProtos.dll
Constructors
AuthRequirement()
AuthRequirement(AuthRequirement)
public AuthRequirement(AuthRequirement other)
Fields
AudiencesFieldNumber
public const int AudiencesFieldNumber = 2
Field number for the "audiences" field.
Field Value Type Description Int32
ProviderIdFieldNumber
public const int ProviderIdFieldNumber = 1
Field number for the "provider_id" field.
Field Value Type Description Int32
Properties
Audiences
public string Audiences { get; set; }
NOTE: This will be deprecated soon, once AuthProvider.audiences is
implemented and accepted in all the runtime components.
The list of JWT
audiences .
that are allowed to access. A JWT containing any of these audiences will
be accepted. When this setting is absent, only JWTs with audience
"https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
will be accepted. For example, if no audiences are in the setting,
LibraryService API will only accept JWTs with the following audience
"https://library-example.googleapis.com/google.example.library.v1.LibraryService" ;.
Example:
audiences: bookstore_android.apps.googleusercontent.com,
bookstore_web.apps.googleusercontent.com
Property Value Type Description String
Descriptor
public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Parser
public static Protobuf.MessageParser<AuthRequirement> Parser { get; }
ProviderId
public string ProviderId { get; set; }
[id][google.api.AuthProvider.id] from authentication provider.
Example:
provider_id: bookstore_auth
Property Value Type Description String
Methods
CalculateSize()
public int CalculateSize()
Returns Type Description Int32
Clone()
public AuthRequirement Clone()
Equals(AuthRequirement)
public bool Equals(AuthRequirement other)
Equals(Object)
public override bool Equals(object other)
Parameter Name Description other
Object
GetHashCode()
public override int GetHashCode()
Returns Type Description Int32
MergeFrom(AuthRequirement)
public void MergeFrom(AuthRequirement other)
public void MergeFrom(Protobuf.CodedInputStream input)
ToString()
public override string ToString()
WriteTo(Protobuf.CodedOutputStream)
public void WriteTo(Protobuf.CodedOutputStream output)
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-05 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-05 UTC."}