Table of Contents

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 string

The subject ID

Properties

AdditionalClaims

Additional claims

public ICollection<Claim> AdditionalClaims { get; set; }

Property Value

ICollection<Claim>

AuthenticationMethods

Authentication methods

public ICollection<string> AuthenticationMethods { get; set; }

Property Value

ICollection<string>

AuthenticationTime

Authentication time

public DateTime? AuthenticationTime { get; set; }

Property Value

DateTime?

DisplayName

Display name (optional)

public string? DisplayName { get; set; }

Property Value

string

IdentityProvider

Identity provider (optional)

public string? IdentityProvider { get; set; }

Property Value

string

SubjectId

Subject ID (mandatory)

public string SubjectId { get; }

Property Value

string

Tenant

Tenant (optional)

public string? Tenant { get; set; }

Property Value

string

Methods

CreatePrincipal()

Creates an IdentityServer claims principal

public ClaimsPrincipal CreatePrincipal()

Returns

ClaimsPrincipal

Exceptions

ArgumentNullException