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+- C#
- VB.NET
public class PasskeyPrincipal : ClaimsPrincipal
Public Class PasskeyPrincipal
Inherits ClaimsPrincipal
Constructors
PasskeyPrincipal(identity)
Initializes a new instance of the PasskeyPrincipal class.
| Name | Type | Description |
|---|---|---|
| identity | PasskeyIdentity | The signed-in identity. |
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.
| Name | Type | Description |
|---|---|---|
| identity | PasskeyIdentity | The signed-in identity. |
| roles | IEnumerable<String> | The role names to add; null and empty entries are skipped. |
Properties
Identity
PasskeyIdentity: Returns the signed-in PasskeyIdentity.