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"]],[["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-04-17 UTC."],[[["This webpage details the `ScopedCredentialProvider` class within the `Google.Api.Gax.Rest` namespace, which is a simple factory for caching scoped versions of default application credentials to avoid repeated authentication."],["The `ScopedCredentialProvider` class inherits from the `object` class and includes inherited members such as `Equals`, `GetHashCode`, and `ToString`."],["It offers two constructors: one that takes a collection of scopes (`IEnumerable\u003cstring\u003e`) and another that includes an additional `useJwtWithScopes` boolean parameter to control the preferred token type."],["The 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."],["The ScopedCredentialProvider allows the specification of scopes to apply to credentials and offers the ability to use self-signed JWTs instead of OAuth tokens."]]],[]]