Table of Contents

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

Outcome UserCredentialWriteOutcome

What the act did, or why it did nothing.

CredentialId Guid

The identifier the credential was minted with, which is meaningful only when the act was performed.

Lookup UserCredentialLookup

The value the credential is resolved by, which a client has to be told for two of the four methods.

MintedKey string

The key this deployment drew, where the method is one it draws, and null otherwise.

Organization OrganizationShortName

The 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.