Class MailOAuthAccountSettings
- Namespace
- MailFathom.Infrastructure.Mail.OAuth
- Assembly
- MailFathom.Infrastructure.dll
Contains validated token endpoint settings and resolved secrets for one configured account.
public sealed record MailOAuthAccountSettings : IEquatable<MailOAuthAccountSettings>
- Inheritance
-
MailOAuthAccountSettings
- Implements
- Inherited Members
Remarks
The synthesized ToString() is safe only because MailOAuthClientMaterial carries redacted secrets.
Constructors
- MailOAuthAccountSettings(string, Uri, string, string, MailOAuthGrant, MailOAuthClientMaterial)
Contains validated token endpoint settings and resolved secrets for one configured account.
Properties
- AccountId
The normalized local account identifier.
- ClientId
The registered application's client identifier.
- Grant
The grant the request exchanges.
- Material
The client secret and refresh token this request resolved. This record is a carrier and does not own them: the operation that requested the settings owns the material and must dispose it when it ends.
- Scope
The space-delimited scopes the request asks for, empty when the account configured none.
- TokenEndpoint
The authorization server's token endpoint.