Table of Contents

Method BuildAuthorization

Namespace
MailFathom.Common.MailboxOAuth
Assembly
MailFathom.Common.dll

BuildAuthorization(MailboxAuthorizationRequest)

Builds the address a person opens to authorize the mailbox, and the proof the code is redeemed with.

public PendingAuthorization BuildAuthorization(MailboxAuthorizationRequest request)

Parameters

request MailboxAuthorizationRequest

The provider endpoints and registered client.

Returns

PendingAuthorization

The pending authorization to show the operator, which RedeemAuthorizationCodeAsync(MailboxAuthorizationRequest, PendingAuthorization, string, CancellationToken) later redeems.

Exceptions

ArgumentNullException

Thrown when request is null.

InvalidOperationException

Thrown when the request carries no authorization endpoint or redirect address.