Class IdentityServerUser
- Namespace
- Duende.IdentityServer
- Assembly
- Duende.IdentityServer.dll
Model properties of an IdentityServer user
public class IdentityServerUser
- Inheritance
-
IdentityServerUser
- Inherited Members
Constructors
IdentityServerUser(string)
Initializes a user identity
public IdentityServerUser(string subjectId)
Parameters
subjectId
stringThe subject ID
Properties
AdditionalClaims
Additional claims
public ICollection<Claim> AdditionalClaims { get; set; }
Property Value
AuthenticationMethods
Authentication methods
public ICollection<string> AuthenticationMethods { get; set; }
Property Value
AuthenticationTime
Authentication time
public DateTime? AuthenticationTime { get; set; }
Property Value
DisplayName
Display name (optional)
public string? DisplayName { get; set; }
Property Value
IdentityProvider
Identity provider (optional)
public string? IdentityProvider { get; set; }
Property Value
SubjectId
Subject ID (mandatory)
public string SubjectId { get; }
Property Value
Tenant
Tenant (optional)
public string? Tenant { get; set; }
Property Value
Methods
CreatePrincipal()
Creates an IdentityServer claims principal
public ClaimsPrincipal CreatePrincipal()