add spec-driven auth dependency injection

- security.py: parse securitySchemes, resolve {ENV_VAR} from env,
  generate FastAPI Depends for Bearer JWT introspection
- app.py: extract schemes, build deps, pass to binder at init
- binder.py: inject Depends() per operation based on spec's security
- __init__.py: export security module
- pyproject.toml: add httpx dependency
This commit is contained in:
2026-07-17 21:00:23 +05:30
parent 7d075b3904
commit a2169b2bb1
5 changed files with 186 additions and 11 deletions

View File

@@ -102,6 +102,7 @@ from . import client
from . import errors
from . import codegen
from . import codegen_routes
from . import security
__all__ = [
"app",
@@ -111,4 +112,5 @@ __all__ = [
"errors",
"codegen",
"codegen_routes",
"security",
]