Class TestClaimsPrincipalOptions
Configures the synthetic ClaimsPrincipal created by FastMoq web helpers.
Inherited Members
Namespace: FastMoq.Web
Assembly: FastMoq.Web.dll
Syntax
public sealed class TestClaimsPrincipalOptions
Properties
AdditionalClaims
Gets the additional claims appended after the built-in compatibility claims.
Declaration
public IList<Claim> AdditionalClaims { get; }
Property Value
| Type | Description |
|---|---|
| IList<Claim> |
AuthenticationType
Gets or sets the authentication type used by the generated identity.
Declaration
public string AuthenticationType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DisplayName
Gets or sets the value used for display-name style claims.
Declaration
public string? DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Gets or sets the value used for email-style claims.
Declaration
public string? Email { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IncludeDefaultIdentityClaims
Gets or sets a value indicating whether the built-in compatibility claims should be added.
Declaration
public bool IncludeDefaultIdentityClaims { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Gets or sets the value used for Name.
Declaration
public string? Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ObjectId
Gets or sets the value used for object identifier style claims.
Declaration
public string? ObjectId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PreferredUserName
Gets or sets the value used for preferred username and UPN-style claims.
Declaration
public string? PreferredUserName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TenantId
Gets or sets the value used for tenant identifier style claims.
Declaration
public string? TenantId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |