public class PromptCodeReceiver : object, ICodeReceiverOAuth 2.0 verification code receiver that reads the authorization code from the user input.
Implements
ICodeReceiverNamespace
Google.Apis.Auth.OAuth2Assembly
Google.Apis.Auth.dll
Properties
RedirectUri
public string RedirectUri { get; }Gets the redirected URI.
| Property Value | |
|---|---|
| Type | Description |
String |
|
Methods
ReceiveCodeAsync(AuthorizationCodeRequestUrl, CancellationToken)
public Task<AuthorizationCodeResponseUrl> ReceiveCodeAsync(AuthorizationCodeRequestUrl url, CancellationToken taskCancellationToken)Receives the authorization code.
| Parameters | |
|---|---|
| Name | Description |
url |
AuthorizationCodeRequestUrlThe authorization code request URL |
taskCancellationToken |
CancellationTokenCancellation token |
| Returns | |
|---|---|
| Type | Description |
Task<AuthorizationCodeResponseUrl> |
The authorization code response |