PublicKeyCredentialUserEntity
Namespace: Wisej.Ext.WebAuthn
Assembly: Wisej.Ext.WebAuthn (4.1.0.0)
Names and identifier for the user account performing the registration.
- C#
- VB.NET
public class PublicKeyCredentialUserEntity
Public Class PublicKeyCredentialUserEntity
See #dom-publickeycredentialcreationoptions-user.
Constructors
PublicKeyCredentialUserEntity()
Creates a new instance of PublicKeyCredentialUserEntity.
Example:
var user = new PublicKeyCredentialUserEntity
{
Id = "user-1234",
Name = "jane.doe@example.com",
DisplayName = "Jane Doe"
};
PublicKeyCredentialUserEntity(id, name, displayName)
Creates a new instance of PublicKeyCredentialUserEntity with the given configuration.
| Name | Type | Description |
|---|---|---|
| id | String | The user handle. Use a stable, opaque identifier without personal information; it is returned in UserHandle on login. |
| name | String | The user name, e.g. an email address. |
| displayName | String | The 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
DisplayName
String: A human-palatable name for the user account, intended only for display.
Id
String: The user handle of the user account.
Name
String: A name for the user account.