public static class GoogleGrpcCredentials : object
Factory/extension methods to create instances ofChannelCredentialsandCallCredentialsclasses
based on credential objects originating from Google auth library.
public static async Task<ChannelCredentials> GetApplicationDefaultAsync()
Retrieves an instance of Google's Application Default Credentials usingGoogleCredential.GetApplicationDefaultAsync()and converts them
into a gRPCChannelCredentialsthat use the default SSL credentials.
[[["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\u003e\u003ccode\u003eGoogleGrpcCredentials\u003c/code\u003e provides factory and extension methods for creating \u003ccode\u003eChannelCredentials\u003c/code\u003e and \u003ccode\u003eCallCredentials\u003c/code\u003e instances from Google auth library credentials.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFromAccessToken\u003c/code\u003e method generates \u003ccode\u003eCallCredentials\u003c/code\u003e using a given OAuth2 access token for authenticating with a gRPC service.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetApplicationDefaultAsync\u003c/code\u003e fetches Google's Application Default Credentials and converts them into \u003ccode\u003eChannelCredentials\u003c/code\u003e using default SSL credentials.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eToCallCredentials\u003c/code\u003e and \u003ccode\u003eToChannelCredentials\u003c/code\u003e methods convert \u003ccode\u003eITokenAccess\u003c/code\u003e objects into \u003ccode\u003eCallCredentials\u003c/code\u003e and \u003ccode\u003eChannelCredentials\u003c/code\u003e respectively, for gRPC usage.\u003c/p\u003e\n"]]],[],null,[]]