Skip to content

src/dazzle_back/runtime/auth/dependencies.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

FastAPI dependencies for protected routes.

Key Exports

  • create_auth_dependency
  • create_deny_dependency
  • create_optional_auth_dependency
  • get_current_user
  • check_deny_roles
  • get_optional_user

Dependencies

Imports

  • collections.abc.Awaitable
  • collections.abc.Callable
  • dazzle_back.runtime._fastapi_compat.FASTAPI_AVAILABLE
  • dazzle_back.runtime._fastapi_compat.FastAPIRequest
  • models.AuthContext
  • store.AuthStore
  • fastapi.HTTPException
  • fastapi.HTTPException

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

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.