C# 클래스 Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker

A helper utility to manage the authorization code flow.
파일 보기 프로젝트 열기: Gainedge/BetterExplorer

공개 메소드들

메소드 설명
AuthorizeAsync ( Google.Apis.Auth.OAuth2.ClientSecrets clientSecrets, IEnumerable scopes, string user, CancellationToken taskCancellationToken ) : Task

Asynchronously authorizes the specified user.

It uses Google.Apis.Util.Store.StorageDataStore as the flow's data store by default.

AuthorizeAsync ( Stream clientSecretsStream, IEnumerable scopes, string user, CancellationToken taskCancellationToken ) : Task

Asynchronously authorizes the specified user.

It uses Google.Apis.Util.Store.StorageDataStore as the flow's data store by default.

AuthorizeAsync ( Uri clientSecretsUri, IEnumerable scopes, string user, CancellationToken taskCancellationToken ) : Task

Asynchronously authorizes the specified user.

It uses Google.Apis.Util.Store.StroageDataStore as the flow's data store by default.

비공개 메소드들

메소드 설명
AuthorizeAsyncCore ( Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow initializer, IEnumerable scopes, string user, CancellationToken taskCancellationToken ) : Task

The core logic for asynchronously authorizing the specified user.

LoadClientSecrets ( Uri clientSecretsUri ) : Task

Loads the client secrets from the given URI.

메소드 상세

AuthorizeAsync() 공개 정적인 메소드

Asynchronously authorizes the specified user.
It uses Google.Apis.Util.Store.StorageDataStore as the flow's data store by default.
public static AuthorizeAsync ( Google.Apis.Auth.OAuth2.ClientSecrets clientSecrets, IEnumerable scopes, string user, CancellationToken taskCancellationToken ) : Task
clientSecrets Google.Apis.Auth.OAuth2.ClientSecrets The client secrets.
scopes IEnumerable /// The scopes which indicate the Google API access your application is requesting. ///
user string The user to authorize.
taskCancellationToken System.Threading.CancellationToken Cancellation token to cancel an operation.
리턴 Task

AuthorizeAsync() 공개 정적인 메소드

Asynchronously authorizes the specified user.
It uses Google.Apis.Util.Store.StorageDataStore as the flow's data store by default.
public static AuthorizeAsync ( Stream clientSecretsStream, IEnumerable scopes, string user, CancellationToken taskCancellationToken ) : Task
clientSecretsStream Stream /// The client secrets stream. The AuthorizationCodeFlow constructor is responsible for disposing the stream. /// Note that it's more secured to use the authenticate method which gets , and /// hard code your secrets in your app rather than storing the secrets in a separate unsecured file. ///
scopes IEnumerable /// The scopes which indicate the Google API access your application is requesting. ///
user string The user to authorize.
taskCancellationToken System.Threading.CancellationToken Cancellation token to cancel an operation.
리턴 Task

AuthorizeAsync() 공개 정적인 메소드

Asynchronously authorizes the specified user.
It uses Google.Apis.Util.Store.StroageDataStore as the flow's data store by default.
public static AuthorizeAsync ( Uri clientSecretsUri, IEnumerable scopes, string user, CancellationToken taskCancellationToken ) : Task
clientSecretsUri System.Uri The client secrets URI.
scopes IEnumerable /// The scopes which indicate the Google API access your application is requesting. ///
user string The user to authorize.
taskCancellationToken System.Threading.CancellationToken Cancellation token to cancel an operation.
리턴 Task