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 |
---|---|---|
System.String | userId | User identifier |
System.Threading.CancellationToken | taskCancellationToken | Cancellation token to cancel an operation |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<UserCredential> | The user's credential |