Show / Hide Table of Contents

Class Authentication

Authentication defines the authentication configuration for an API.

Example for an API targeted for external use:

name: calendar.googleapis.com authentication: providers:

  • id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules:
  • selector: "*" requirements: provider_id: google_calendar_auth
Inheritance
System.Object
Authentication
Implements
IMessage<Authentication>
IMessage
System.IEquatable<Authentication>
IDeepCloneable<Authentication>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class Authentication : IMessage<Authentication>, IMessage, IEquatable<Authentication>, IDeepCloneable<Authentication>

Constructors

Authentication()

Declaration
public Authentication()

Authentication(Authentication)

Declaration
public Authentication(Authentication other)
Parameters
Type Name Description
Authentication other

Fields

ProvidersFieldNumber

Field number for the "providers" field.

Declaration
public const int ProvidersFieldNumber = 4
Field Value
Type Description
System.Int32

RulesFieldNumber

Field number for the "rules" field.

Declaration
public const int RulesFieldNumber = 3
Field Value
Type Description
System.Int32

Properties

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Parser

Declaration
public static MessageParser<Authentication> Parser { get; }
Property Value
Type Description
MessageParser<Authentication>

Providers

Defines a set of authentication providers that a service supports.

Declaration
public RepeatedField<AuthProvider> Providers { get; }
Property Value
Type Description
RepeatedField<AuthProvider>

Rules

A list of authentication rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

Declaration
public RepeatedField<AuthenticationRule> Rules { get; }
Property Value
Type Description
RepeatedField<AuthenticationRule>

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public Authentication Clone()
Returns
Type Description
Authentication
Implements
IDeepCloneable<T>.Clone()

Equals(Authentication)

Declaration
public bool Equals(Authentication other)
Parameters
Type Name Description
Authentication other
Returns
Type Description
System.Boolean
Implements
System.IEquatable<T>.Equals(T)

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

MergeFrom(Authentication)

Declaration
public void MergeFrom(Authentication other)
Parameters
Type Name Description
Authentication other
Implements
IMessage<T>.MergeFrom(T)

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top