Raxol.Audit.Events.AuthenticationEvent (Raxol v2.0.1)

View Source

Audit event for authentication attempts.

Summary

Types

authentication_method()

@type authentication_method() ::
  :password | :sso | :api_key | :certificate | :biometric

outcome()

@type outcome() :: :success | :failure | :locked | :expired

t()

@type t() :: %Raxol.Audit.Events.AuthenticationEvent{
  authentication_method: authentication_method(),
  enriched_at: integer() | nil,
  environment: String.t() | nil,
  event_id: String.t(),
  failure_reason: String.t() | nil,
  ip_address: String.t(),
  metadata: map(),
  mfa_used: boolean(),
  node: atom() | nil,
  outcome: outcome(),
  session_id: String.t() | nil,
  signature: String.t() | nil,
  timestamp: integer(),
  user_agent: String.t() | nil,
  user_id: String.t() | nil,
  username: String.t(),
  version: String.t() | nil
}

Functions

validate(event)