Class MailOAuthClientMaterial
- Namespace
- MailFathom.Infrastructure.Mail.OAuth
- Assembly
- MailFathom.Infrastructure.dll
The secrets one token request resolved from an account's configured references.
public sealed record MailOAuthClientMaterial : IDisposable, IEquatable<MailOAuthClientMaterial>
- Inheritance
-
MailOAuthClientMaterial
- Implements
- Inherited Members
Remarks
The instance is owned by the token request that resolved it and is disposed when that request ends, which bounds the window in which a process dump could contain either value to one request rather than to process uptime. This mirrors MailAccountConnectionMaterial, and for the same reason: a credential rotated behind an unchanged reference is picked up by the next request with no cache to invalidate.
Constructors
- MailOAuthClientMaterial(ResolvedSecret?, ResolvedSecret?)
The secrets one token request resolved from an account's configured references.
Properties
- ClientSecret
The registered application's secret, or null for a public client, which holds none.
- RefreshToken
The operator-provisioned refresh token, or null for the client-credentials grant, which has none.
Methods
- Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.