Enum UserCredentialWriteOutcome
- Namespace
- MailFathom.Application.Access.Credentials
- Assembly
- MailFathom.Application.dll
What an administrative act on one of a user's credentials did, or why it did nothing.
public enum UserCredentialWriteOutcome
Fields
LookupTaken = 2Another credential of the same method already carries the lookup, which resolves one user and cannot resolve two.
A username somebody already provisioned, a public key already registered for another user, or a subject another mapping already claims. It cannot arise for a minted key, whose lookup is a digest of material this deployment drew at random.
UnknownCredential = 3The named user holds no credential with that identifier.
UnknownUser = 1This deployment holds no user record with the named identity.
UserAtCredentialCeiling = 4The user already holds as many credentials as one user may.
The ceiling is MaximumListedPerUser, and it is refused at the store rather than checked before the write, so two administrators provisioning at once cannot both pass a count and leave the user above it. Reaching it is a deployment provisioning credentials it never removes rather than an operator's ordinary mistake, so what the refusal asks for is a look at what the user already holds.
Written = 0The act was performed and is durable.
Remarks
A result rather than an exception, because every value but the first is an operator's mistake in the request they wrote — a mistyped user, a lookup somebody already took, a credential deleted between reading a listing and acting on it. The boundary answers each with a sentence naming what to write instead, which is not an exceptional state and not something to unwind a call stack for.
Nothing here says whether a password was strong enough, because that is refused before the store is reached: the policy is a property of what a deployment accepts rather than of what a row would allow, and refusing it beside a missing user would put the two in one vocabulary that the transport then has to split apart again.