Constructor MailOAuthAccountSettings
- Namespace
- MailFathom.Infrastructure.Mail.OAuth
- Assembly
- MailFathom.Infrastructure.dll
MailOAuthAccountSettings(string, Uri, string, string, MailOAuthGrant, MailOAuthClientMaterial)
Contains validated token endpoint settings and resolved secrets for one configured account.
public MailOAuthAccountSettings(string AccountId, Uri TokenEndpoint, string ClientId, string Scope, MailOAuthGrant Grant, MailOAuthClientMaterial Material)
Parameters
AccountIdstringThe normalized local account identifier.
TokenEndpointUriThe authorization server's token endpoint.
ClientIdstringThe registered application's client identifier.
ScopestringThe space-delimited scopes the request asks for, empty when the account configured none.
GrantMailOAuthGrantThe grant the request exchanges.
MaterialMailOAuthClientMaterialThe 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.
Remarks
The synthesized ToString() is safe only because MailOAuthClientMaterial carries redacted secrets.