Property ClientSecret
- Namespace
- MailFathom.Infrastructure.Mail.OAuth
- Assembly
- MailFathom.Infrastructure.dll
ClientSecret
Gets or sets the reference to the registered application's client secret, absent for a public client and when the account authenticates with a password.
public ConfiguredSecret? ClientSecret { get; set; }
Property Value
Remarks
The block is nullable and defaults to absent rather than to an empty block, and that is a correctness requirement rather than a style choice. Secret discovery walks the bound options graph by type and resolves every ConfiguredSecret it finds, so an empty block left here by default would be discovered for every password-authenticated account and fail startup with an unresolvable reference the operator never wrote.