C# Class Google.Apis.Auth.OAuth2.AuthorizationCodeBroker

OAuth 2.0 verification code receiver for Windows 8 application that opens an embedded Google account form to enter the user's credentials and accepts the application access to its token.
Inheritance: ICodeReceiver
ファイルを表示 Open project: Gainedge/BetterExplorer

Public Methods

Method Description
ReceiveCodeAsync ( Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrl url, CancellationToken taskCancellationToken ) : Task

Private Methods

Method Description
InvokeFromUIThread ( System.Action action ) : Task
ReceiveCodeAsync ( Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrl url, TaskCompletionSource tcs ) : Task

Asynchronously receives the authorization code.

ReceivedCodeCoreAsync ( Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrl url, CancellationToken taskCancellationToken ) : Task

The core logic for retrieving the authorization code. It MUST be called from the UI thread.

Method Details

ReceiveCodeAsync() public method

public ReceiveCodeAsync ( Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrl url, CancellationToken taskCancellationToken ) : Task
url Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrl
taskCancellationToken System.Threading.CancellationToken
return Task