Show / Hide Table of Contents

Class PromptCodeReceiver

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

Inheritance
System.Object
PromptCodeReceiver
Implements
ICodeReceiver
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public class PromptCodeReceiver : ICodeReceiver

Properties

RedirectUri

Gets the redirected URI.

Declaration
public string RedirectUri { get; }
Property Value
Type Description
System.String

Methods

ReceiveCodeAsync(AuthorizationCodeRequestUrl, CancellationToken)

Receives the authorization code.

Declaration
public Task<AuthorizationCodeResponseUrl> ReceiveCodeAsync(AuthorizationCodeRequestUrl url, CancellationToken taskCancellationToken)
Parameters
Type Name Description
AuthorizationCodeRequestUrl url

The authorization code request URL

System.Threading.CancellationToken taskCancellationToken

Cancellation token

Returns
Type Description
System.Threading.Tasks.Task<AuthorizationCodeResponseUrl>

The authorization code response

Implements

ICodeReceiver
Back to top