Interface IAuthorizationCodeInstalledApp (1.60.0)

public interface IAuthorizationCodeInstalledApp

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

Namespace

GoogleApisAuthOAuth2

Assembly

Google.Apis.Auth.dll

Properties

CodeReceiver

ICodeReceiver CodeReceiver { get; }

Gets the code receiver.

Property Value
TypeDescription
ICodeReceiver

Flow

IAuthorizationCodeFlow Flow { get; }

Gets the authorization code flow.

Property Value
TypeDescription
IAuthorizationCodeFlow

Methods

AuthorizeAsync(string, CancellationToken)

Task<UserCredential> AuthorizeAsync(string userId, CancellationToken taskCancellationToken)

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

Parameters
NameDescription
userIdstring

User identifier

taskCancellationTokenCancellationToken

Cancellation token to cancel an operation

Returns
TypeDescription
TaskUserCredential

The user's credential

Extension Method