Class ScopedCredentialProvider (3.2.0)

public sealed class ScopedCredentialProvider

Simple factory of scoped credentials, which caches a scoped version of the default application credentials to avoid repeated authentication.

Inheritance

Object > ScopedCredentialProvider

Namespace

Google.Api.Gax.Rest

Assembly

Google.Api.Gax.Rest.dll

Constructors

ScopedCredentialProvider(IEnumerable<String>)

public ScopedCredentialProvider(IEnumerable<string> scopes)

Creates a channel pool which will apply the specified scopes to the credentials if they require any.

Parameter
NameDescription
scopesIEnumerable<String>

The scopes to apply. Must not be null, and must not contain null references. May be empty.