src/dazzle_back/runtime/surface_access.py¶
Generated: 2026-03-30T04:38:48.520825+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Surface access control enforcement for DNR-Back applications.
Enforces access control based on SurfaceAccessSpec: - Authentication checks - Persona-based authorization (allow_personas, deny_personas) - Unauthenticated user handling (401 for API, redirect for UI)
The pure types (SurfaceAccessConfig...
Key Exports¶
get_user_personas_from_membershipcreate_access_check_handlercreate_access_denied_handlercheck_accesshandle_access_denied
Dependencies¶
Imports¶
collections.abc.Callabletyping.Anyfastapi.Requestfastapi.responses.JSONResponsefastapi.responses.RedirectResponsestarlette.responses.Responsedazzle_ui.runtime.surface_access.SurfaceAccessConfigdazzle_ui.runtime.surface_access.SurfaceAccessDenieddazzle_ui.runtime.surface_access.check_surface_accessfastapi.HTTPExceptionjson
Event Interactions¶
None detected.
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/unit/test_surface_access_parsing.pytests/unit/test_surface_access_enforcement.pytests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.