Skip to main content
Version: 4.2

PasskeyPrincipal

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

The principal assigned to User after a successful passkey sign-in.

4.2.0+
public class PasskeyPrincipal : ClaimsPrincipal

Constructors​

Instance member PasskeyPrincipal(identity)​

Initializes a new instance of the PasskeyPrincipal class.

NameTypeDescription
identityPasskeyIdentityThe signed-in identity.

Instance member PasskeyPrincipal(identity, roles)​

Initializes a new instance of the PasskeyPrincipal class and adds the specified roles as claims of the identity's role claim type.

NameTypeDescription
identityPasskeyIdentityThe signed-in identity.
rolesIEnumerable<String>The role names to add; null and empty entries are skipped.

Properties​

Instance member Identity​

PasskeyIdentity: Returns the signed-in PasskeyIdentity.