Factory/extension methods to create instances ofChannelCredentialsandCallCredentialsclasses
based on credential objects originating from Google auth library.
public static 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\u003eYou can create \u003ccode\u003eCallCredentials\u003c/code\u003e using the \u003ccode\u003eFromAccessToken\u003c/code\u003e method with an OAuth2 access token for gRPC service authentication.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetApplicationDefaultAsync\u003c/code\u003e method fetches Google's Application Default Credentials and converts them into a gRPC \u003ccode\u003eChannelCredentials\u003c/code\u003e with default SSL settings.\u003c/p\u003e\n"],["\u003cp\u003eThe methods \u003ccode\u003eToCallCredentials\u003c/code\u003e and \u003ccode\u003eToChannelCredentials\u003c/code\u003e convert \u003ccode\u003eITokenAccess\u003c/code\u003e objects (like \u003ccode\u003eGoogleCredential\u003c/code\u003e) into gRPC \u003ccode\u003eCallCredentials\u003c/code\u003e and \u003ccode\u003eChannelCredentials\u003c/code\u003e, respectively.\u003c/p\u003e\n"]]],[],null,[]]