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