Interface ICodeReceiver (1.60.0)

public interface ICodeReceiver

OAuth 2.0 verification code receiver.

Namespace

GoogleApisAuthOAuth2

Assembly

Google.Apis.Auth.dll

Properties

RedirectUri

string RedirectUri { get; }

Gets the redirected URI.

Property Value
TypeDescription
string

Methods

ReceiveCodeAsync(AuthorizationCodeRequestUrl, CancellationToken)

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

Receives the authorization code.

Parameters
NameDescription
urlAuthorizationCodeRequestUrl

The authorization code request URL

taskCancellationTokenCancellationToken

Cancellation token

Returns
TypeDescription
TaskAuthorizationCodeResponseUrl

The authorization code response

Extension Method