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

@@ -55,6 +55,9 @@ dependencies = [
# Code generation
"datamodel-code-generator>=0.25.0",
# HTTP client for service-to-service (token introspection)
"httpx>=0.27.0",
]
[project.scripts]