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
AuthorizationEndpointUriThe authorization server's endpoint a person signs in at, unused by the device-code grant.
TokenEndpointUriThe endpoint the authorization code or device code is exchanged at.
DeviceAuthorizationEndpointUriThe RFC 8628 endpoint that issues a device code, or null when the provider offers none.
ClientIdstringThe registered application's client identifier.
ClientSecretstringThe registered application's secret, or null for a public client that authenticates with PKCE alone.
ScopestringThe space-delimited scopes to request.
RedirectUriUriThe 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.