public interface IAuthorizationCodeInstalledAppAuthorization code flow for an installed application that persists end-user credentials.
Namespace
GoogleApisAuthOAuth2Assembly
Google.Apis.Auth.dll
Properties
CodeReceiver
ICodeReceiver CodeReceiver { get; }Gets the code receiver.
| Property Value | |
|---|---|
| Type | Description |
ICodeReceiver |
|
Flow
IAuthorizationCodeFlow Flow { get; }Gets the authorization code flow.
| Property Value | |
|---|---|
| Type | Description |
IAuthorizationCodeFlow |
|
Methods
AuthorizeAsync(string, CancellationToken)
Task<UserCredential> AuthorizeAsync(string userId, CancellationToken taskCancellationToken)Asynchronously authorizes the installed application to access user's protected data.
| Parameters | |
|---|---|
| Name | Description |
userId |
stringUser identifier |
taskCancellationToken |
CancellationTokenCancellation token to cancel an operation |
| Returns | |
|---|---|
| Type | Description |
TaskUserCredential |
The user's credential |