public ScopedCredentialProvider(IEnumerable<string> scopes)
Creates a channel pool which will apply the specified scopes to the credentials if they require any.
A provider created with this overload is equivalent to calling ScopedCredentialProvider(IEnumerable<string>, bool)
with a second argument of false.
[[["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\u003eThis webpage details the \u003ccode\u003eScopedCredentialProvider\u003c/code\u003e class within the \u003ccode\u003eGoogle.Api.Gax.Rest\u003c/code\u003e namespace, which is a simple factory for caching scoped versions of default application credentials to avoid repeated authentication.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eScopedCredentialProvider\u003c/code\u003e class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and includes inherited members such as \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two constructors: one that takes a collection of scopes (\u003ccode\u003eIEnumerable<string>\u003c/code\u003e) and another that includes an additional \u003ccode\u003euseJwtWithScopes\u003c/code\u003e boolean parameter to control the preferred token type.\u003c/p\u003e\n"],["\u003cp\u003eThe class is available in multiple versions of the Google.Api.Gax package, ranging from version 3.2.0 up to the latest version 4.10.0.\u003c/p\u003e\n"],["\u003cp\u003eThe ScopedCredentialProvider allows the specification of scopes to apply to credentials and offers the ability to use self-signed JWTs instead of OAuth tokens.\u003c/p\u003e\n"]]],[],null,[]]