Constructor MailboxAuthorizationGrant
- Namespace
- MailFathom.Common.MailboxOAuth
- Assembly
- MailFathom.Common.dll
MailboxAuthorizationGrant(string, DateTimeOffset)
What an interactive authorization run produced for the operator to provision.
public MailboxAuthorizationGrant(string RefreshToken, DateTimeOffset AccessTokenExpiresAt)
Parameters
RefreshTokenstringThe long-lived token MailFathom exchanges for access tokens at run time.
AccessTokenExpiresAtDateTimeOffsetWhen the access token issued alongside it stops working, which the run reports only as evidence that the grant works.
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.