Send feedback
Class AuthProvider (2.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.10.0 keyboard_arrow_down
public sealed class AuthProvider : IMessage<AuthProvider>, IEquatable<AuthProvider>, IDeepCloneable<AuthProvider>, IBufferMessage, IMessage
Inheritance
object >
AuthProvider
Namespace
Google.Api
Assembly
Google.Api.CommonProtos.dll
Constructors
AuthProvider()
AuthProvider(AuthProvider)
public AuthProvider(AuthProvider other)
Fields
AudiencesFieldNumber
public const int AudiencesFieldNumber = 4
Field number for the "audiences" field.
Field Value
Type
Description
int
AuthorizationUrlFieldNumber
public const int AuthorizationUrlFieldNumber = 5
Field number for the "authorization_url" field.
Field Value
Type
Description
int
IdFieldNumber
public const int IdFieldNumber = 1
Field number for the "id" field.
Field Value
Type
Description
int
IssuerFieldNumber
public const int IssuerFieldNumber = 2
Field number for the "issuer" field.
Field Value
Type
Description
int
JwksUriFieldNumber
public const int JwksUriFieldNumber = 3
Field number for the "jwks_uri" field.
Field Value
Type
Description
int
JwtLocationsFieldNumber
public const int JwtLocationsFieldNumber = 6
Field number for the "jwt_locations" field.
Field Value
Type
Description
int
Properties
Audiences
public string Audiences { get; set; }
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, JWTs with audiences:
Example:
audiences: bookstore_android.apps.googleusercontent.com,
bookstore_web.apps.googleusercontent.com
Property Value
Type
Description
string
AuthorizationUrl
public string AuthorizationUrl { get; set; }
Redirect URL if JWT token is required but not present or is expired.
Implement authorizationUrl of securityDefinitions in OpenAPI spec.
Property Value
Type
Description
string
Descriptor
public static MessageDescriptor Descriptor { get; }
Id
public string Id { get; set; }
The unique identifier of the auth provider. It will be referred to by
AuthRequirement.provider_id
.
Example: "bookstore_auth".
Property Value
Type
Description
string
Issuer
public string Issuer { get; set; }
Property Value
Type
Description
string
JwksUri
public string JwksUri { get; set; }
Property Value
Type
Description
string
JwtLocations
public RepeatedField<JwtLocation> JwtLocations { get; }
Defines the locations to extract the JWT. For now it is only used by the
Cloud Endpoints to store the OpenAPI extension x-google-jwt-locations
JWT locations can be one of HTTP headers, URL query parameters or
cookies. The rule is that the first match wins.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
2) x-goog-iap-jwt-assertion
3) access_token query parameter
Default locations can be specified as followings:
jwt_locations:
header: Authorization
value_prefix: "Bearer "
header: x-goog-iap-jwt-assertion
query: access_token
Parser
public static MessageParser<AuthProvider> Parser { get; }
Methods
CalculateSize()
public int CalculateSize()
Returns
Type
Description
int
Clone()
public AuthProvider Clone()
Equals(AuthProvider)
public bool Equals(AuthProvider other)
Returns
Type
Description
bool
Equals(object)
public override bool Equals(object other)
Parameter
Name
Description
other
object
Returns
Type
Description
bool
Overrides
GetHashCode()
public override int GetHashCode()
Returns
Type
Description
int
Overrides
MergeFrom(AuthProvider)
public void MergeFrom(AuthProvider other)
public void MergeFrom(CodedInputStream input)
ToString()
public override string ToString()
Returns
Type
Description
string
Overrides
WriteTo(CodedOutputStream)
public void WriteTo(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-12-19 UTC.
Need to tell us more?
[[["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 2024-12-19 UTC."],[],[]]