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

Thread-safe OAuth 2.0 authorization code flow for a Windows Phone installed application that persists end-user credentials. The AuthorizeAsync method MUST be called from the dispatcher thread! This installed app class uses an internal AuthorizationCodeInstalledApp with a Google.Apis.Auth.OAuth2.AuthorizationCodeBroker for retrieving the authorization code.
Inheritance: IAuthorizationCodeInstalledApp
Show file Open project: Gainedge/BetterExplorer Class Usage Examples

Public Methods

Method Description
AuthorizationCodeWPInstalledApp ( Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow authorizationCodeFlowInitializer ) : System

Constructs a new authorization code installed application for WP.

AuthorizeAsync ( string userId, CancellationToken taskCancellationToken ) : Task

Method Details

AuthorizationCodeWPInstalledApp() public method

Constructs a new authorization code installed application for WP.
public AuthorizationCodeWPInstalledApp ( Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow authorizationCodeFlowInitializer ) : System
authorizationCodeFlowInitializer Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlow A authorization code flow initializer.
return System

AuthorizeAsync() public method

public AuthorizeAsync ( string userId, CancellationToken taskCancellationToken ) : Task
userId string
taskCancellationToken System.Threading.CancellationToken
return Task