Skip to main content

AuthenticatorData

Namespace: Wisej.Ext.WebAuthn

Assembly: Wisej.Ext.WebAuthn (4.1.0.0)

Information about the authenticator.

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​

Instance member AuthenticatorData()​

Initializes a new instance of AuthenticatorData.

Properties​

Instance member BackupEligibility​

Boolean: Defines whether the public key credential source is allowed to be backed up.

Instance member Base64​

String: The authenticator data in base64 format.

Instance member PublicKey​

PublicKey: Represents the public key received from the client. Only available in CreateAsync.

Instance member RPIDHash​

Byte[]: Represents a hash of the Relaying Party ID (RPID). Only available in GetAsync.

Instance member UserPresent​

Boolean: Defines whether the user is said to be "present".

Instance member UserVerified​

Boolean: Defines whether the user is said to be "verified".