public sealed class AuthProvider : Protobuf.IMessage<AuthProvider>, Protobuf.IBufferMessage
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 |
Int32 | |
AuthorizationUrlFieldNumber
public const int AuthorizationUrlFieldNumber = 5
Field number for the "authorization_url" field.
Field Value |
---|
Type | Description |
Int32 | |
IdFieldNumber
public const int IdFieldNumber = 1
Field number for the "id" field.
Field Value |
---|
Type | Description |
Int32 | |
IssuerFieldNumber
public const int IssuerFieldNumber = 2
Field number for the "issuer" field.
Field Value |
---|
Type | Description |
Int32 | |
JwksUriFieldNumber
public const int JwksUriFieldNumber = 3
Field number for the "jwks_uri" field.
Field Value |
---|
Type | Description |
Int32 | |
JwtLocationsFieldNumber
public const int JwtLocationsFieldNumber = 6
Field number for the "jwt_locations" field.
Field Value |
---|
Type | Description |
Int32 | |
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 Protobuf.Reflection.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 Protobuf.Collections.RepeatedField<JwtLocation> JwtLocations { get; }
Defines the locations to extract the JWT.
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
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 Protobuf.MessageParser<AuthProvider> Parser { get; }
Methods
CalculateSize()
public int CalculateSize()
Returns |
---|
Type | Description |
Int32 | |
Clone()
public AuthProvider Clone()
Equals(AuthProvider)
public bool Equals(AuthProvider other)
Equals(Object)
public override bool Equals(object other)
Parameter |
---|
Name | Description |
other | Object
|
GetHashCode()
public override int GetHashCode()
Returns |
---|
Type | Description |
Int32 | |
MergeFrom(AuthProvider)
public void MergeFrom(AuthProvider other)
public void MergeFrom(Protobuf.CodedInputStream input)
ToString()
public override string ToString()
WriteTo(Protobuf.CodedOutputStream)
public void WriteTo(Protobuf.CodedOutputStream output)