Documentation
¶
Overview ¶
Package loginlog is a minimal writer for the login_events table used by the panel login and the OIDC flows (stream B1). It is intentionally tiny so it can be replaced by a full login_events repository in internal/store later: only Record and Event are used by callers.
Index ¶
Constants ¶
View Source
const ( MethodPassword = "password" MethodOIDC = "oidc" MethodWebAuth = "webauth" MethodPasskey = "passkey" )
Method values of login_events.method.
View Source
const ( ClientWebAdmin = "webadmin" ClientClient = "client" )
Client kinds (login_events.client_kind).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
UserID *int64
UsernameAttempted string
TokenID *int64
Method string
Success bool
FailureReason string
ClientKind string
DeviceRustdeskID string
DeviceUUID string
Platform string
IP string
UserAgent string
At time.Time
}
Event is one login attempt. Never put secrets in FailureReason.
Click to show internal directories.
Click to hide internal directories.