Skip to main content
Version: 4.2

PasskeyUser

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

The account a new passkey is registered for: the application's own opaque user id, and the two strings the browser shows while the passkey is created.

4.2.0+
public sealed class PasskeyUser

None of these is the WebAuthn user handle. The handle is 64 random bytes the component asks the store to keep for the (relying party, user id) pair, is never derived from a name or an e-mail address, and is never shown to anyone — WebAuthn Level 3 §14.6.1. The application authorizes the account before calling RegisterAsync; the component cannot know whether the caller may add a passkey to it.

Constructors​

Instance member PasskeyUser(userId, name, displayName)​

Initializes a new instance of the PasskeyUser class.

NameTypeDescription
userIdStringThe application's opaque, stable user id. Never displayed.
nameStringThe account name the browser shows and the passkey provider stores next to the passkey, typically the sign-in name or e-mail address.
displayNameStringThe human-readable name shown beside name ; null or empty falls back to name .

Throws:

  • ArgumentException userId or name is null, empty or white space, or userId begins or ends with white space.

Properties​

Instance member DisplayName​

String: Returns the human-readable name the browser shows.

Instance member Name​

String: Returns the account name the browser shows.

Instance member UserId​

String: Returns the application's opaque user id.