Class TestIdentity

Namespace
XBullet.EasyTesting.Authentication
Assembly
XBullet.EasyTesting.dll

Describes an additional identity attached to a simulated test principal.

public sealed record TestIdentity : IEquatable<TestIdentity>
Inheritance
TestIdentity
Implements
Inherited Members

Properties

AuthenticationType

Gets the identity authentication type.

public string AuthenticationType { get; init; }

Property Value

string

The authentication type exposed by the identity. The default is the simulated scheme name.

Claims

Gets claims belonging to this identity.

public IReadOnlyCollection<TestClaim> Claims { get; init; }

Property Value

IReadOnlyCollection<TestClaim>

The claims materialized into the additional identity. The default is an empty collection.

NameClaimType

Gets the claim type used for Name.

public string NameClaimType { get; init; }

Property Value

string

Name by default.

RoleClaimType

Gets the claim type used for role checks.

public string RoleClaimType { get; init; }

Property Value

string

Role by default.