src/dazzle_back/runtime/jwt_middleware.py¶
Generated: 2026-03-30T04:38:47.499267+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
JWT Bearer token middleware for FastAPI.
Provides authentication middleware that validates JWT tokens from mobile clients.
Key Exports¶
JWTAuthContextJWTMiddlewarecreate_jwt_dependencycreate_optional_jwt_dependencyDualAuthMiddlewarecreate_dual_auth_dependencyuser_idemailrolestenant_idget_auth_contextget_jwt_authget_auth_contextget_dual_auth
Dependencies¶
Imports¶
__future__.annotationscollections.abc.Awaitablecollections.abc.Callabletyping.TYPE_CHECKINGtyping.Anypydantic.BaseModelpydantic.Fielddazzle_back.runtime._fastapi_compat.FASTAPI_AVAILABLEdazzle_back.runtime._fastapi_compat.FastAPIRequestdazzle_back.runtime.jwt_auth.JWTClaimsdazzle_back.runtime.jwt_auth.JWTErrordazzle_back.runtime.jwt_auth.JWTServicefastapi.HTTPExceptionfastapi.HTTPException
Event Interactions¶
None detected.
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.pytests/unit/test_runtime_services.pytests/unit/test_runtime_mcp_tools.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.