Constructor MailOAuthClientMaterial
- Namespace
- MailFathom.Infrastructure.Mail.OAuth
- Assembly
- MailFathom.Infrastructure.dll
MailOAuthClientMaterial(ResolvedSecret?, ResolvedSecret?)
The secrets one token request resolved from an account's configured references.
public MailOAuthClientMaterial(ResolvedSecret? ClientSecret, ResolvedSecret? RefreshToken)
Parameters
ClientSecretResolvedSecretThe registered application's secret, or null for a public client, which holds none.
RefreshTokenResolvedSecretThe operator-provisioned refresh token, or null for the client-credentials grant, which has none.
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.