Class PromptCodeReceiver

public class PromptCodeReceiver : object, ICodeReceiver

OAuth 2.0 verification code receiver that reads the authorization code from the user input.

Inheritance

Object > PromptCodeReceiver

Implements

ICodeReceiver

Namespace

Google.Apis.Auth.OAuth2

Assembly

Google.Apis.Auth.dll

Properties

RedirectUri

public string RedirectUri { get; }

Gets the redirected URI.

Property Value
TypeDescription
String

Methods

ReceiveCodeAsync(AuthorizationCodeRequestUrl, CancellationToken)

public Task<AuthorizationCodeResponseUrl> ReceiveCodeAsync(AuthorizationCodeRequestUrl url, CancellationToken taskCancellationToken)

Receives the authorization code.

Parameters
TypeNameDescription
AuthorizationCodeRequestUrlurl

The authorization code request URL

CancellationTokentaskCancellationToken

Cancellation token

Returns
TypeDescription
Task<AuthorizationCodeResponseUrl>

The authorization code response

Implements

Extension Method