Google API Client Library for .NET  1.10.0
Public Member Functions | Properties | List of all members
Google.Apis.Auth.OAuth2.AuthorizationCodeWindowsInstalledApp Class Reference

OAuth 2.0 authorization code flow for a Windows 8.1 installed application that persists end-user credentials. More...

Inheritance diagram for Google.Apis.Auth.OAuth2.AuthorizationCodeWindowsInstalledApp:
Google.Apis.Auth.OAuth2.IAuthorizationCodeInstalledApp

Public Member Functions

 AuthorizationCodeWindowsInstalledApp (AuthorizationCodeFlow.Initializer authorizationCodeFlowInitializer)
 Constructs a new authorization code for Windows Store application targeting an installed application flow. More...
 
 AuthorizationCodeWindowsInstalledApp (IAuthorizationCodeFlow flow)
 Constructs a new authorization code for Windows Store application targeting an installed application flow. More...
 
async Task< UserCredentialAuthorizeAsync (string userId, CancellationToken taskCancellationToken)
 Asynchronously authorizes the installed application to access user's protected data. More...
 

Properties

IAuthorizationCodeFlow Flow [get]
 
ICodeReceiver CodeReceiver [get]
 
- Properties inherited from Google.Apis.Auth.OAuth2.IAuthorizationCodeInstalledApp
IAuthorizationCodeFlow Flow [get]
 Gets the authorization code flow. More...
 
ICodeReceiver CodeReceiver [get]
 Gets the code receiver. More...
 

Detailed Description

OAuth 2.0 authorization code flow for a Windows 8.1 installed application that persists end-user credentials.

This installed app class uses an internal AuthorizationCodeInstalledApp with a Google.Apis.Auth.OAuth2.AuthorizationCodeBroker for retrieving the authorization code.

Constructor & Destructor Documentation

Google.Apis.Auth.OAuth2.AuthorizationCodeWindowsInstalledApp.AuthorizationCodeWindowsInstalledApp ( AuthorizationCodeFlow.Initializer  authorizationCodeFlowInitializer)
inline

Constructs a new authorization code for Windows Store application targeting an installed application flow.

Parameters
authorizationCodeFlowInitializerAn authorization code flow initializer.
Google.Apis.Auth.OAuth2.AuthorizationCodeWindowsInstalledApp.AuthorizationCodeWindowsInstalledApp ( IAuthorizationCodeFlow  flow)
inline

Constructs a new authorization code for Windows Store application targeting an installed application flow.

Parameters
flowAn authorization code flow.

Member Function Documentation

async Task<UserCredential> Google.Apis.Auth.OAuth2.AuthorizationCodeWindowsInstalledApp.AuthorizeAsync ( string  userId,
CancellationToken  taskCancellationToken 
)
inline

Asynchronously authorizes the installed application to access user's protected data.

Parameters
userIdUser identifier
taskCancellationTokenCancellation token to cancel an operation
Returns
The user's credential

Implements Google.Apis.Auth.OAuth2.IAuthorizationCodeInstalledApp.


The documentation for this class was generated from the following file: