Table of Contents

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

AccountId string

The normalized local account identifier.

TokenEndpoint Uri

The authorization server's token endpoint.

ClientId string

The registered application's client identifier.

Scope string

The space-delimited scopes the request asks for, empty when the account configured none.

Grant MailOAuthGrant

The grant the request exchanges.

Material MailOAuthClientMaterial

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.

Remarks

The synthesized ToString() is safe only because MailOAuthClientMaterial carries redacted secrets.