Table of Contents

Class MailboxAuthorizationGrant

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

What an interactive authorization run produced for the operator to provision.

public sealed record MailboxAuthorizationGrant : IEquatable<MailboxAuthorizationGrant>
Inheritance
MailboxAuthorizationGrant
Implements
Inherited Members

Remarks

The refresh token is returned rather than written anywhere. MailFathom reads every credential through a secret reference — a file, an environment variable, or a systemd credential — and a tool that wrote one into a configuration file would be establishing a second, unreviewed way for a credential to exist on disk. Handing it to the operator keeps provisioning in the mechanism that already owns rotation.

ToString() is redacted, so the value reaches a terminal only where the command deliberately prints it.

Constructors

MailboxAuthorizationGrant(string, DateTimeOffset)

What an interactive authorization run produced for the operator to provision.

Properties

AccessTokenExpiresAt

When the access token issued alongside it stops working, which the run reports only as evidence that the grant works.

RefreshToken

The long-lived token MailFathom exchanges for access tokens at run time.

Methods

ToString()

Returns a string that represents the current object.