Skip to main content
Version: 4.2

PasskeyAuthenticationUpdate

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

The authentication state one verified assertion moves a stored credential to, handed to CommitAuthenticationAsync. It names the row, says what the component expects to find there, and carries the new values — and nothing else: no key, no account binding, no name, no registration evidence, because an authentication must never rewrite those.

4.2.0+
public sealed class PasskeyAuthenticationUpdate

Constructors​

Instance member PasskeyAuthenticationUpdate(relyingPartyId, credentialId, expectedSignCount, expectedConcurrencyToken, signCount, backedUp, userVerified, lastUsedAt)​

Initializes a new instance of the PasskeyAuthenticationUpdate class.

NameTypeDescription
relyingPartyIdStringThe normalized relying party id of the record.
credentialIdByte[]The credential id of the record.
expectedSignCountUInt32The counter the record carried when it was read.
expectedConcurrencyTokenByte[]The concurrency token the record carried when it was read, or an empty array when it carried none; the component never passes null.
signCountUInt32The counter the authenticator asserted. Never below expectedSignCount .
backedUpBooleanThe BS flag of the assertion.
userVerifiedBooleanWhether the assertion verified the user with a credential whose user verification is established: the assertion's UV flag and the record's UserVerified.
lastUsedAtDateTimeOffsetWhen the assertion was verified, in UTC.

Throws:

Properties​

Instance member BackedUp​

Boolean: Returns the new BackedUp value.

Instance member CredentialId​

Byte[]: Returns the credential id of the record to update.

Instance member ExpectedConcurrencyToken​

Byte[]: Returns the ConcurrencyToken the record carried when the ceremony read it, or an empty array when it carried none, null or empty: the component never passes null. A store that issues tokens applies the update only when the stored token still equals this; a store that does not ignores it.

Instance member ExpectedSignCount​

UInt32: Returns the SignCount the record carried when the ceremony read it. The store applies the update only when the stored value still equals this.

Instance member LastUsedAt​

DateTimeOffset: Returns the new LastUsedAt value, in UTC.

Instance member RelyingPartyId​

String: Returns the normalized relying party id of the record to update.

Instance member SignCount​

UInt32: Returns the new signature counter. Greater than ExpectedSignCount when either is nonzero, because a regression already failed the ceremony; equal only when both are zero.

Instance member UserVerified​

Boolean: Returns whether this assertion verified the user with a credential whose user verification was already established; false for a credential registered without it, whatever the assertion's UV flag said, so an authentication never establishes it. The store sets UserVerified to its stored value OR this one; it never clears it.