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+- C#
- VB.NET
public sealed class PasskeyAuthenticationUpdate
Public NotInheritable Class PasskeyAuthenticationUpdate
Constructors
PasskeyAuthenticationUpdate(relyingPartyId, credentialId, expectedSignCount, expectedConcurrencyToken, signCount, backedUp, userVerified, lastUsedAt)
Initializes a new instance of the PasskeyAuthenticationUpdate class.
| Name | Type | Description |
|---|---|---|
| relyingPartyId | String | The normalized relying party id of the record. |
| credentialId | Byte[] | The credential id of the record. |
| expectedSignCount | UInt32 | The counter the record carried when it was read. |
| expectedConcurrencyToken | Byte[] | The concurrency token the record carried when it was read, or an empty array when it carried none; the component never passes null. |
| signCount | UInt32 | The counter the authenticator asserted. Never below expectedSignCount . |
| backedUp | Boolean | The BS flag of the assertion. |
| userVerified | Boolean | Whether the assertion verified the user with a credential whose user verification is established: the assertion's UV flag and the record's UserVerified. |
| lastUsedAt | DateTimeOffset | When the assertion was verified, in UTC. |
Throws:
- ArgumentNullException relyingPartyId or credentialId is null.
Properties
BackedUp
Boolean: Returns the new BackedUp value.
CredentialId
Byte[]: Returns the credential id of the record to update.
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.
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.
LastUsedAt
DateTimeOffset: Returns the new LastUsedAt value, in UTC.
RelyingPartyId
String: Returns the normalized relying party id of the record to update.
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.
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.