Class MailboxAuthorizationRequest
- Namespace
- MailFathom.Common.MailboxOAuth
- Assembly
- MailFathom.Common.dll
Everything one interactive authorization run needs to obtain a refresh token for a mailbox.
public sealed record MailboxAuthorizationRequest : IEquatable<MailboxAuthorizationRequest>
- Inheritance
-
MailboxAuthorizationRequest
- Implements
- Inherited Members
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.
Constructors
- MailboxAuthorizationRequest(Uri?, Uri, Uri?, string, string?, string, Uri?)
Everything one interactive authorization run needs to obtain a refresh token for a mailbox.
Properties
- AuthorizationEndpoint
The authorization server's endpoint a person signs in at, unused by the device-code grant.
- ClientId
The registered application's client identifier.
- ClientSecret
The registered application's secret, or null for a public client that authenticates with PKCE alone.
- DeviceAuthorizationEndpoint
The RFC 8628 endpoint that issues a device code, or null when the provider offers none.
- RedirectUri
The loopback address the authorization code is returned to, unused by the device-code grant.
- Scope
The space-delimited scopes to request.
- TokenEndpoint
The endpoint the authorization code or device code is exchanged at.
Methods
- ToString()
Returns a string that represents the current object.