auth-fixes #3

Merged
aetos merged 4 commits from auth-fixes into main 2026-07-19 14:47:03 +00:00

4 Commits

Author SHA1 Message Date
bbd45cbf2d fix indentation on _resolve_spec_env_vars call in __init__ 2026-07-18 20:20:21 +05:30
0dc96907fa resolve {ENV_VAR} placeholders in spec before serving
- app.py: add _resolve_env and _resolve_spec_env_vars to replace
  {ENV_VAR} patterns (e.g. {AUTH_SERVER}) with os.environ values
  so the frontend receives resolved URLs via /openapi.json
2026-07-18 20:07:32 +05:30
cda158e549 build introspect URL from x-server-url + x-introspect-path
- security.py: read x-server-url and x-introspect-path separately
  from resolved security scheme, join to form introspect URL
2026-07-18 19:48:38 +05:30
a2169b2bb1 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
2026-07-17 21:00:23 +05:30