Constructor UserCredentialProvisioning
- Namespace
- MailFathom.Application.Access.Credentials
- Assembly
- MailFathom.Application.dll
UserCredentialProvisioning(UserCredentialWriteOutcome, Guid, UserCredentialLookup, string?, OrganizationShortName)
What provisioning a credential did, and what only the act that performed it can report.
public UserCredentialProvisioning(UserCredentialWriteOutcome Outcome, Guid CredentialId, UserCredentialLookup Lookup, string? MintedKey, OrganizationShortName Organization = default)
Parameters
OutcomeUserCredentialWriteOutcomeWhat the act did, or why it did nothing.
CredentialIdGuidThe identifier the credential was minted with, which is meaningful only when the act was performed.
LookupUserCredentialLookupThe value the credential is resolved by, which a client has to be told for two of the four methods.
MintedKeystringThe key this deployment drew, where the method is one it draws, and null otherwise.
OrganizationOrganizationShortNameThe organization a password credential was scoped to as it was written, which decides the login a person types; unspecified for every other method and for an act that wrote nothing.
Remarks
The identifier travels beside the outcome because it is the one thing a caller cannot have known in advance and the one thing every later act on the credential names. MintedKey travels the same way for a stronger reason: it exists here and nowhere else, so a caller that drops it has lost the credential rather than mislaid it. ToString() is redacted so that no diagnostic renders one.