[[["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-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAuthentication\u003c/code\u003e class defines the authentication configuration for API methods provided by an API service.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports a set of authentication providers, which are defined in the \u003ccode\u003eProviders\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAuthentication\u003c/code\u003e also includes a set of rules, specified in the \u003ccode\u003eRules\u003c/code\u003e property, that apply to individual API methods, with the "last one wins" order applying to all configuration rules.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eAuthentication\u003c/code\u003e is 2.15.0, with other available versions being 2.10.0 and 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class Authentication (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Authentication)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Api.Authentication)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Api.Authentication)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Api.Authentication) \n\n public sealed class Authentication : IMessage\u003cAuthentication\u003e, IEquatable\u003cAuthentication\u003e, IDeepCloneable\u003cAuthentication\u003e, IBufferMessage, IMessage\n\n`Authentication` defines the authentication configuration for API methods\nprovided by an API service.\n\nExample: \n\n name: calendar.googleapis.com\n authentication:\n providers:\n - id: google_calendar_auth\n jwks_uri: https://www.googleapis.com/oauth2/v1/certs\n issuer: https://securetoken.google.com\n rules:\n - selector: \"*\"\n requirements:\n provider_id: google_calendar_auth\n - selector: google.calendar.Delegate\n oauth:\n canonical_scopes: https://www.googleapis.com/auth/calendar.read\n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Authentication \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Authentication](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Authentication), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Authentication](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Authentication), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Authentication](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.Authentication), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)\n\nNamespace\n---------\n\n[Google.Api](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api)\n\nAssembly\n--------\n\nGoogle.Api.CommonProtos.dll\n\nConstructors\n------------\n\n### Authentication()\n\n public Authentication()\n\n### Authentication(Authentication)\n\n public Authentication(Authentication other)\n\nFields\n------\n\n### ProvidersFieldNumber\n\n public const int ProvidersFieldNumber = 4\n\nField number for the \"providers\" field.\n\n### RulesFieldNumber\n\n public const int RulesFieldNumber = 3\n\nField number for the \"rules\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### Parser\n\n public static MessageParser\u003cAuthentication\u003e Parser { get; }\n\n### Providers\n\n public RepeatedField\u003cAuthProvider\u003e Providers { get; }\n\nDefines a set of authentication providers that a service supports.\n\n### Rules\n\n public RepeatedField\u003cAuthenticationRule\u003e Rules { get; }\n\nA list of authentication rules that apply to individual API methods.\n\n**NOTE:** All service configuration rules follow \"last one wins\" order.\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public Authentication Clone()\n\n### Equals(Authentication)\n\n public bool Equals(Authentication other)\n\n### Equals(object)\n\n public override bool Equals(object other)\n\n**Overrides** \n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### MergeFrom(Authentication)\n\n public void MergeFrom(Authentication other)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### WriteTo(CodedOutputStream)\n\n public void WriteTo(CodedOutputStream output)"]]