Class LoginLogEntry
- Namespace
- Dynamicweb.Security.UserManagement
- Assembly
- Dynamicweb.Core.dll
A single authentication event recorded in the login log.
public class LoginLogEntry
- Inheritance
-
LoginLogEntry
- Inherited Members
Properties
AuthMethod
Gets or sets the authentication method, when applicable.
public LoginLogAuthMethod? AuthMethod { get; set; }
Property Value
EventType
Gets or sets the kind of event.
public LoginLogEventType EventType { get; set; }
Property Value
ExternalProviderName
Gets or sets the external provider name for an external login.
public string? ExternalProviderName { get; set; }
Property Value
FailedReason
Gets or sets the failure reason for a failed login, when applicable.
public LogOnFailedReason? FailedReason { get; set; }
Property Value
Id
Gets the auto-generated identity of the log row.
public int Id { get; }
Property Value
IpAddress
Gets or sets the client IP address.
public string? IpAddress { get; set; }
Property Value
Origin
Gets or sets where the event originated.
public LoginLogOrigin Origin { get; set; }
Property Value
SessionId
Gets or sets a correlation id tying a login to its logout.
public string? SessionId { get; set; }
Property Value
Success
Gets or sets whether the event succeeded. True for logout, false for lockout.
public bool Success { get; set; }
Property Value
Timestamp
Gets or sets the event timestamp.
public DateTime Timestamp { get; set; }
Property Value
UserAgent
Gets or sets the client user agent (truncated to 512 chars on write).
public string? UserAgent { get; set; }
Property Value
UserId
Gets or sets the resolved user id, or null for a failed attempt on an unknown user.
public int? UserId { get; set; }
Property Value
- int?
Username
Gets or sets the raw login string that was attempted. Never store the password.
public string? Username { get; set; }