Skip to content

src/dazzle_back/runtime/auth/events.py

Generated: 2026-03-30T04:38:46.871788+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Auth lifecycle event emission.

Emits events to the EventFramework bus after successful auth operations: - auth.user.registered — after user registration - auth.user.logged_in — after login (including 2FA completion) - auth.user.password_changed — after password change

Events are fire-a...

Key Exports

  • configure_auth_events
  • emit_user_registered
  • emit_user_logged_in
  • emit_user_password_changed

Dependencies

Imports

  • __future__.annotations
  • logging
  • datetime.UTC
  • datetime.datetime
  • typing.TYPE_CHECKING
  • typing.Any
  • dazzle_back.events.envelope.EventEnvelope
  • models.UserRecord

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_events.py
  • tests/unit/test_events_api.py
  • tests/unit/test_auth_events.py
  • tests/unit/test_llm_events.py
  • tests/unit/test_auth_action_handlers.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.