Interface LaravelUi5\Sdk\Security\Contracts\SecurityEventInterface

An event the security log records: a sign-in, a refusal, an impersonation.

Dispatch it like any Laravel event; the SDK listens for the interface and writes one row of sdk_security_log. The event says what happened; the SDK adds where from (method, URL, session as a hash, IP, user agent, language) and who acted — the user's person partner once there is one, under impersonation also the principal behind them.

Laravel's own auth events (Login, Failed, Logout, Lockout, PasswordResetLinkSent, PasswordReset, Verified) are mapped by the SDK; implement this interface for an event of your own, such as a magic link redeemed. Never put a password, a token or a link's signature into it.

Methods