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

View Source

Audit event for authorization decisions.

Summary

Types

outcome()

@type outcome() :: :granted | :denied | :error

t()

@type t() :: %Raxol.Audit.Events.AuthorizationEvent{
  action: String.t(),
  denial_reason: String.t() | nil,
  event_id: String.t(),
  ip_address: String.t() | nil,
  metadata: map(),
  outcome: outcome(),
  permission: String.t() | nil,
  policy_evaluated: String.t() | nil,
  resource_id: String.t(),
  resource_type: String.t(),
  session_id: String.t() | nil,
  timestamp: integer(),
  user_id: String.t()
}