Interface IUserCredentialAuditor
- Namespace
- MailFathom.Application.Access.Credentials
- Assembly
- MailFathom.Application.dll
Records that an administrator changed which credentials authenticate a user.
public interface IUserCredentialAuditor
Remarks
Provisioning, rotating, disabling, and deleting a credential each change who can reach one person's mail, and none of them leaves a trace in the mail graph. The record is the explanation an operator reads afterwards, and it names the act, the credential, the user, and who asked — which is everything a later question about "when did this password stop working" can be answered from.
It deliberately cannot carry the lookup. A lookup is what a caller presents — a username typed into a client, a key's digest, a client's public key, a subject an authorization server issued — so the identifier is what is written down instead: a listing resolves the two for whoever is entitled to read one, and a record that named both would put a live credential's name into whichever sink this port ends up writing to.
The port is deliberately narrow for the reason IMailFolderMappingChangeAuditor is: the sink behind it is undecided — structured logging today, an audit table or an external evidence store once compliance evidence is collected — and one operation is all a caller may reach for.
Methods
- RecordCredentialChangeAsync(UserCredentialChange, CancellationToken)
Records one change to a user's credentials.