[[["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-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGoogleAuthInterceptors\u003c/code\u003e class provides factory methods for creating authorization interceptors using Google credentials.\u003c/p\u003e\n"],["\u003cp\u003eYou can create an \u003ccode\u003eAsyncAuthInterceptor\u003c/code\u003e using a direct access token via the \u003ccode\u003eFromAccessToken\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFromCredential\u003c/code\u003e method allows you to generate an \u003ccode\u003eAsyncAuthInterceptor\u003c/code\u003e from any credential that implements \u003ccode\u003eITokenAccess\u003c/code\u003e, such as \u003ccode\u003eGoogleCredential\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere is an additional \u003ccode\u003eFromCredential\u003c/code\u003e method available for credential types implementing \u003ccode\u003eITokenAccessWithHeaders\u003c/code\u003e to obtain an \u003ccode\u003eAsyncAuthInterceptor\u003c/code\u003e along with access token and associated data.\u003c/p\u003e\n"]]],[],null,["# Class GoogleAuthInterceptors (2.66.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.66.0 (latest)](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Auth.GoogleAuthInterceptors)\n- [2.63.0](/dotnet/docs/reference/Grpc.Core/2.63.0/Grpc.Auth.GoogleAuthInterceptors)\n- [2.48.0](/dotnet/docs/reference/Grpc.Core/2.48.0/Grpc.Auth.GoogleAuthInterceptors) \n\n public static class GoogleAuthInterceptors\n\nFactory methods to create authorization interceptors for Google credentials.\n[GoogleGrpcCredentials](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Auth.GoogleGrpcCredentials) \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GoogleAuthInterceptors \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Grpc.Auth](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Auth)\n\nAssembly\n--------\n\nGrpc.Auth.dll\n\nMethods\n-------\n\n### FromAccessToken(string)\n\n public static AsyncAuthInterceptor FromAccessToken(string accessToken)\n\nCreates an [AsyncAuthInterceptor](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncAuthInterceptor) that will use given access token as authorization.\n\n### FromCredential(ITokenAccess)\n\n public static AsyncAuthInterceptor FromCredential(ITokenAccess credential)\n\nCreates an [AsyncAuthInterceptor](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncAuthInterceptor) that will obtain access token from any credential type that implements\n`ITokenAccess`. (e.g. `GoogleCredential`).\n\n### FromCredential(ITokenAccessWithHeaders)\n\n public static AsyncAuthInterceptor FromCredential(ITokenAccessWithHeaders credential)\n\nCreates an [AsyncAuthInterceptor](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncAuthInterceptor) that will obtain access token and associated information\nfrom any credential type that implements [ITokenAccessWithHeaders](https://github.com/googleapis/google-api-dotnet-client/blob/5b340dd01c2e6e971f7132c72015d4030eeb2257/Src/Support/Google.Apis.Auth/OAuth2/ITokenAccessWithHeaders.cs)"]]