Class SessionProps

Assembly: redb.Identity.Core.dll

PROPS entity tracking user login sessions.
Key = userId (subject). Each record represents one login event.
Revoking a session cascades to revoking all authorizations and tokens for that user.

[RedbScheme("identity.session")]
public class SessionProps

Inheritance

Object→SessionProps

Properties

ApplicationObjectId

FK to the application (client) the user logged into.

public long ApplicationObjectId { get; set; }

ClientApplicationIds

The applications (object ids) that obtained tokens through this session at the authorization

public long[]? ClientApplicationIds { get; set; }

DeviceLabel

Human-friendly device label derived from (e.g. "Chrome 135 on Windows 10"),

public string? DeviceLabel { get; set; }

IpAddress

Client IP address captured from the authenticating request (redbHttp.RemoteAddress,

public string? IpAddress { get; set; }

LastAccessedAt

S-track: last time this session was used. Updated on every activity that

public DateTimeOffset? LastAccessedAt { get; set; }

LastAccessedBy

S-track: label of the most recent activity that bumped

public string? LastAccessedBy { get; set; }

MfaMethod

MFA method used (totp, recovery). Null if no MFA.

public string? MfaMethod { get; set; }

MfaVerified

Whether session was established with MFA verification.

public bool MfaVerified { get; set; }

Status

"active" or "revoked".

public string? Status { get; set; }

UserAgent

Raw User-Agent header captured at login time. May be null for non-HTTP transports.

public string? UserAgent { get; set; }