AuthenticatorData
Namespace: Wisej.Ext.WebAuthn
Assembly: Wisej.Ext.WebAuthn (4.1.0.0)
Information about the authenticator.
- C#
- VB.NET
public class AuthenticatorData
Public Class AuthenticatorData
Returned in AuthenticatorData. CreateAsync fills PublicKey; GetAsync fills RPIDHash, the user flags and Base64. See #sctn-authenticator-data.
Example:
CredentialsResponse response = await WebAuthn.GetAsync(challenge, allowCredentials, 60000);
AuthenticatorData data = response.AuthenticatorData;
if (!data.UserPresent || !data.UserVerified)
{
AlertBox.Show("The user was not verified by the authenticator.");
return;
}
bool valid = WebAuthn.Validate(publicKey, data.Base64, response.ClientData.Base64, response.Signature);
Constructors
AuthenticatorData()
Initializes a new instance of AuthenticatorData.
Properties
BackupEligibility
Boolean: Defines whether the public key credential source is allowed to be backed up.
Base64
String: The authenticator data in base64 format.
PublicKey
PublicKey: Represents the public key received from the client. Only available in CreateAsync.
RPIDHash
Byte[]: Represents a hash of the Relaying Party ID (RPID). Only available in GetAsync.
UserPresent
Boolean: Defines whether the user is said to be "present".
UserVerified
Boolean: Defines whether the user is said to be "verified".