Skip to main content

PublicKeyCredentialUserEntity

Namespace: Wisej.Ext.WebAuthn

Assembly: Wisej.Ext.WebAuthn (4.1.0.0)

Names and identifier for the user account performing the registration.

public class PublicKeyCredentialUserEntity

See #dom-publickeycredentialcreationoptions-user.

Constructors​

Instance member PublicKeyCredentialUserEntity()​

Creates a new instance of PublicKeyCredentialUserEntity.

Example:

var user = new PublicKeyCredentialUserEntity
{
Id = "user-1234",
Name = "jane.doe@example.com",
DisplayName = "Jane Doe"
};

Instance member PublicKeyCredentialUserEntity(id, name, displayName)​

Creates a new instance of PublicKeyCredentialUserEntity with the given configuration.

NameTypeDescription
idStringThe user handle. Use a stable, opaque identifier without personal information; it is returned in UserHandle on login.
nameStringThe user name, e.g. an email address.
displayNameStringThe name shown to the user by the authenticator.

Example:

var user = new PublicKeyCredentialUserEntity("user-1234", "jane.doe@example.com", "Jane Doe");

CredentialsResponse response = await WebAuthn.CreateAsync(
challenge, rp, user, parameters, selection, 60000, AttestationConveyancePreference.None);

Properties​

Instance member DisplayName​

String: A human-palatable name for the user account, intended only for display.

Instance member Id​

String: The user handle of the user account.

Instance member Name​

String: A name for the user account.