public interface ICredential : IConfigurableHttpClientInitializer, ITokenAccess
The main interface to represent credential in the client library.
Service account, User account and Compute credential inherit from this interface
to provide access token functionality. In addition this interface inherits from
IConfigurableHttpClientInitializer to be able to hook to http requests.
More details are available in the specific implementations.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eICredential\u003c/code\u003e interface is 1.69.0, as indicated by the provided link.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eICredential\u003c/code\u003e serves as the primary interface for credential representation within the client library, from which service accounts, user accounts, and compute credentials derive.\u003c/p\u003e\n"],["\u003cp\u003eThis interface provides token functionality and inherits from \u003ccode\u003eIConfigurableHttpClientInitializer\u003c/code\u003e, enabling integration with HTTP requests.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eICredential\u003c/code\u003e includes the \u003ccode\u003eInitialize\u003c/code\u003e method from \u003ccode\u003eIConfigurableHttpClientInitializer\u003c/code\u003e and the \u003ccode\u003eGetAccessTokenForRequestAsync\u003c/code\u003e method from \u003ccode\u003eITokenAccess\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoogle.Apis.Auth.OAuth2\u003c/code\u003e namespace houses the \u003ccode\u003eICredential\u003c/code\u003e interface within the \u003ccode\u003eGoogle.Apis.Auth.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]