{ "module": "openapi_first.security", "content": { "path": "openapi_first.security", "docstring": "OpenAPI security scheme parsing and auto-generated auth dependencies.\n\nReads `securitySchemes` and per-operation `security` from an OpenAPI spec,\nresolves `{ENV_VAR}` placeholders in `x-` extension fields, and generates\nFastAPI dependencies for token validation (e.g., Bearer JWT introspection).", "objects": { "os": { "name": "os", "kind": "alias", "path": "openapi_first.security.os", "signature": "", "docstring": null }, "re": { "name": "re", "kind": "alias", "path": "openapi_first.security.re", "signature": "", "docstring": null }, "Callable": { "name": "Callable", "kind": "alias", "path": "openapi_first.security.Callable", "signature": "", "docstring": null }, "Any": { "name": "Any", "kind": "alias", "path": "openapi_first.security.Any", "signature": "", "docstring": null }, "httpx": { "name": "httpx", "kind": "alias", "path": "openapi_first.security.httpx", "signature": "", "docstring": null }, "Depends": { "name": "Depends", "kind": "alias", "path": "openapi_first.security.Depends", "signature": "", "docstring": null }, "HTTPException": { "name": "HTTPException", "kind": "alias", "path": "openapi_first.security.HTTPException", "signature": "", "docstring": null }, "Request": { "name": "Request", "kind": "alias", "path": "openapi_first.security.Request", "signature": "", "docstring": null }, "HTTPAuthorizationCredentials": { "name": "HTTPAuthorizationCredentials", "kind": "alias", "path": "openapi_first.security.HTTPAuthorizationCredentials", "signature": "", "docstring": null }, "HTTPBearer": { "name": "HTTPBearer", "kind": "alias", "path": "openapi_first.security.HTTPBearer", "signature": "", "docstring": null }, "parse_security_schemes": { "name": "parse_security_schemes", "kind": "function", "path": "openapi_first.security.parse_security_schemes", "signature": "", "docstring": "Extract and resolve environment variables in security schemes." }, "make_security_dependencies": { "name": "make_security_dependencies", "kind": "function", "path": "openapi_first.security.make_security_dependencies", "signature": "", "docstring": "Build a mapping of ``METHOD:/path`` → list of ``Depends(...)``.\n\nThe effective security for each operation is resolved by:\n\n1. Using the operation-level ``security`` field if present.\n2. Falling back to the top-level ``security`` field.\n3. An empty list means *no auth required* for that operation." } } } }