Class ClientPrincipal
- Namespace
- Cratis.Applications.Identity
- Assembly
- Cratis.Applications.dll
Represents the structure of a Microsoft Client Principal.
public class ClientPrincipal
- Inheritance
-
ClientPrincipal
- Inherited Members
- Extension Methods
Remarks
This is based on the definition found here: https://learn.microsoft.com/en-us/azure/static-web-apps/user-information?tabs=csharp#client-principal-data.
Properties
Claims
Get or sets the claims.
public IEnumerable<ClientPrincipalClaim> Claims { get; set; }
Property Value
IdentityProvider
Gets or sets the auth type - also referred to as the IDP type.
public string IdentityProvider { get; set; }
Property Value
UserDetails
Gets or sets the user details.
public string UserDetails { get; set; }
Property Value
UserId
Gets or sets the user ID.
public string UserId { get; set; }
Property Value
UserRoles
Gets or sets the user roles.
public IEnumerable<string> UserRoles { get; set; }