Class UserSession
- Namespace
- Fdyay.IdentityServer.Models
- Assembly
- Fdyay.IdentityServer.AspNetCore.dll
A server-side session, with the authentication ticket it holds.
public class UserSession
- Inheritance
-
UserSession
- Inherited Members
Remarks
Duende 8.0.1's UserSession, measured, as IServerSideTicketStore.GetSessionsAsync answers it. Duende's also
carries the session's issuer and client list; this server keeps the client list on the ticket's properties, where
AuthenticationTicket already holds it.
Properties
AuthenticationTicket
The ticket the session holds: the user, and the session's properties.
public required AuthenticationTicket AuthenticationTicket { get; init; }
Property Value
Created
When the session began (UTC).
public DateTime Created { get; init; }
Property Value
DisplayName
The user's name as the session recorded it, for an administrative list; null when the principal carried none.
public string? DisplayName { get; init; }
Property Value
Expires
When the session expires (UTC), or null when it does not expire on its own.
public DateTime? Expires { get; init; }
Property Value
Renewed
When the session was last renewed (UTC), which sliding expiration moves forward.
public DateTime Renewed { get; init; }
Property Value
SessionId
The session's sid, or null when the session has none.
public string? SessionId { get; init; }
Property Value
SubjectId
The subject the session is for.
public required string SubjectId { get; init; }