C# 클래스 Google.Api.Gax.ScopedCredentialProvider

Simple factory of scoped credentials, which caches a scoped version of the default application credentials to avoid repeated authentication.
파일 보기 프로젝트 열기: googleapis/gax-dotnet

공개 메소드들

메소드 설명
GetCredentials ( Google.Apis.Auth.OAuth2.GoogleCredential credentials ) : Google.Apis.Auth.OAuth2.GoogleCredential

Returns credentials with the scopes applied if required.

GetCredentialsAsync ( Google.Apis.Auth.OAuth2.GoogleCredential credentials ) : Task

Asynchronously returns credentials with the scopes applied if required.

ScopedCredentialProvider ( IEnumerable scopes ) : Google.Apis.Auth.OAuth2

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

비공개 메소드들

메소드 설명
ApplyScopes ( Google.Apis.Auth.OAuth2.GoogleCredential original ) : Google.Apis.Auth.OAuth2.GoogleCredential
CreateDefaultCredentialsUncached ( ) : Task

메소드 상세

GetCredentials() 공개 메소드

Returns credentials with the scopes applied if required.
public GetCredentials ( Google.Apis.Auth.OAuth2.GoogleCredential credentials ) : Google.Apis.Auth.OAuth2.GoogleCredential
credentials Google.Apis.Auth.OAuth2.GoogleCredential Existing credentials, if any. This may be null, /// in which case the default application credentials will be used.
리턴 Google.Apis.Auth.OAuth2.GoogleCredential

GetCredentialsAsync() 공개 메소드

Asynchronously returns credentials with the scopes applied if required.
public GetCredentialsAsync ( Google.Apis.Auth.OAuth2.GoogleCredential credentials ) : Task
credentials Google.Apis.Auth.OAuth2.GoogleCredential Existing credentials, if any. This may be null, /// in which case the default application credentials will be used.
리턴 Task

ScopedCredentialProvider() 공개 메소드

Creates a channel pool which will apply the specified scopes to the credentials if they require any.
public ScopedCredentialProvider ( IEnumerable scopes ) : Google.Apis.Auth.OAuth2
scopes IEnumerable The scopes to apply. Must not be null, and must not contain null references. May be empty.
리턴 Google.Apis.Auth.OAuth2