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

Authorization code flow for an installed application that persists end-user credentials. More...

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

Public Member Functions

Task< UserCredentialAuthorizeAsync (string userId, CancellationToken taskCancellationToken)
 Asynchronously authorizes the installed application to access user's protected data. More...
 

Properties

IAuthorizationCodeFlow Flow [get]
 Gets the authorization code flow. More...
 
ICodeReceiver CodeReceiver [get]
 Gets the code receiver. More...
 

Detailed Description

Authorization code flow for an installed application that persists end-user credentials.

Member Function Documentation

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

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

Implemented in Google.Apis.Auth.OAuth2.AuthorizationCodeWPInstalledApp, Google.Apis.Auth.OAuth2.AuthorizationCodeWPInstalledApp, Google.Apis.Auth.OAuth2.AuthorizationCodeWindowsInstalledApp, and Google.Apis.Auth.OAuth2.AuthorizationCodeInstalledApp.

Property Documentation

ICodeReceiver Google.Apis.Auth.OAuth2.IAuthorizationCodeInstalledApp.CodeReceiver
get

Gets the code receiver.

IAuthorizationCodeFlow Google.Apis.Auth.OAuth2.IAuthorizationCodeInstalledApp.Flow
get

Gets the authorization code flow.


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