Table of Contents

Constructor MailboxAuthorizationRequest

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

MailboxAuthorizationRequest(Uri?, Uri, Uri?, string, string?, string, Uri?)

Everything one interactive authorization run needs to obtain a refresh token for a mailbox.

public MailboxAuthorizationRequest(Uri? AuthorizationEndpoint, Uri TokenEndpoint, Uri? DeviceAuthorizationEndpoint, string ClientId, string? ClientSecret, string Scope, Uri? RedirectUri)

Parameters

AuthorizationEndpoint Uri

The authorization server's endpoint a person signs in at, unused by the device-code grant.

TokenEndpoint Uri

The endpoint the authorization code or device code is exchanged at.

DeviceAuthorizationEndpoint Uri

The RFC 8628 endpoint that issues a device code, or null when the provider offers none.

ClientId string

The registered application's client identifier.

ClientSecret string

The registered application's secret, or null for a public client that authenticates with PKCE alone.

Scope string

The space-delimited scopes to request.

RedirectUri Uri

The loopback address the authorization code is returned to, unused by the device-code grant.

Remarks

The type is public because the command-line tool composes it, and it is the only shape of this work that crosses the assembly boundary. It carries no resolved secret: a client secret typed at a terminal is a string before it reaches here, which is a property of an interactive tool rather than something this type could improve on.