Skip to content

src/dazzle_back/specs/auth.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Authentication and authorization specification types for BackendSpec.

Defines auth rules, tenancy, permissions, roles, and entity access rules.

Key Exports

  • PermissionSpec
  • RoleSpec
  • AuthScheme
  • AuthRuleSpec
  • TenancyStrategy
  • TenancyRuleSpec
  • AccessComparisonKind
  • AccessLogicalKind
  • AccessAuthContext
  • AccessPolicyEffect
  • AccessConditionSpec
  • VisibilityRuleSpec
  • PermissionRuleSpec
  • ScopeRuleSpec
  • EntityAccessSpec
  • is_public
  • is_multi_tenant

Dependencies

Imports

  • enum.StrEnum
  • typing.Any
  • typing.Literal
  • pydantic.BaseModel
  • pydantic.ConfigDict
  • pydantic.Field
  • dazzle.core.access.AccessOperationKind

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.