Skip to content

src/dazzle_back/runtime/subsystems/auth.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Auth routes subsystem.

Registers authentication routes (login/register/logout), social auth (OAuth2), 2FA routes, and JWT routes. Auth deps (AuthStore, AuthMiddleware, auth_dep, optional_auth_dep) are set on SubsystemContext by DazzleBackendApp._setup_auth().

Key Exports

  • AuthSubsystem
  • startup
  • shutdown

Dependencies

Imports

  • logging
  • typing.Any
  • dazzle_back.runtime.subsystems.SubsystemContext
  • dazzle_back.runtime.auth.create_2fa_routes
  • dazzle_back.runtime.auth.create_auth_routes
  • os
  • os
  • dazzle_back.runtime.social_auth.SocialAuthConfig
  • dazzle_back.channels.ses_webhooks.register_ses_webhook
  • dazzle_back.runtime.jwt_auth.JWTConfig
  • dazzle_back.runtime.jwt_auth.JWTService
  • dazzle_back.runtime.social_auth.SocialAuthService
  • dazzle_back.runtime.social_auth.create_social_auth_routes
  • dazzle_back.runtime.token_store.TokenStore

Event Interactions

None detected.

Invariants and Assumptions

  • Assert: auth_store must be set before AuthSubsystem starts

Tests

  • tests/unit/test_auth_action_handlers.py
  • tests/unit/test_auth_events.py
  • tests/unit/test_auth_flows.py
  • tests/unit/test_auth_schema_exclusion.py
  • tests/unit/test_auth_password_reset.py

Notes

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