Interface ITestClaimsPrincipalFactory
- Namespace
- XBullet.EasyTesting.Authentication
- Assembly
- XBullet.EasyTesting.dll
Materializes a server-side claims principal from a transported test-user definition.
public interface ITestClaimsPrincipalFactory
Methods
CreatePrincipal(TestUser)
Creates the claims principal used by the test authentication ticket.
ClaimsPrincipal CreatePrincipal(TestUser user)
Parameters
userTestUserThe transported test-user definition to materialize. The factory reads but does not own or mutate the definition.
Returns
- ClaimsPrincipal
A claims principal representing all identities and claims in
user. The caller owns the returned principal.