api-foundry-query-engine 0.8.55__tar.gz → 0.8.57__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/PKG-INFO +1 -1
- api_foundry_query_engine-0.8.57/api_foundry_query_engine/__init__.py +1 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/adapters/gateway_adapter.py +1 -30
- api_foundry_query_engine-0.8.55/api_foundry_query_engine/__init__.py +0 -1
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/.gitignore +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/LICENSE +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/.pre-commit-config.yaml +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/adapters/adapter.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/adapters/case_change_adapter.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/adapters/security_adapter.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/connectors/connection.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/connectors/connection_factory.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/connectors/oracle_connector.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/connectors/postgres_connection.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/dao/batch_operation_handler.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/dao/dao.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/dao/operation_dao.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/dao/sql_custom_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/dao/sql_delete_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/dao/sql_insert_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/dao/sql_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/dao/sql_restore_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/dao/sql_select_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/dao/sql_subselect_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/dao/sql_update_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/lambda_handler.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/operation.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/services/service.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/services/transactional_service.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/utils/api_model.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/utils/app_exception.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/utils/claims_check.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/utils/dependency_resolver.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/utils/logger.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/utils/reference_resolver.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/api_foundry_query_engine/utils/token_decoder.py +0 -0
- {api_foundry_query_engine-0.8.55 → api_foundry_query_engine-0.8.57}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: api-foundry-query-engine
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.57
|
|
4
4
|
Summary: The AWS lambda service handler use by the `api_foundry` project is a powerful tool designed to automate the deployment of REST APIs on AWS using Lambda services to access and interact with relational databases (RDBMS). This project leverages the OpenAPI specification to define and manage the APIs
|
|
5
5
|
Project-URL: Documentation, https://github.com/DanRepik/api-foundry
|
|
6
6
|
Project-URL: Source, https://github.com/DanRepik/api-foundry
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.8.57"
|
|
@@ -115,36 +115,7 @@ class GatewayAdapter(Adapter):
|
|
|
115
115
|
body = event.get("body")
|
|
116
116
|
if body is not None and len(body) > 0:
|
|
117
117
|
store_params = json.loads(body)
|
|
118
|
-
|
|
119
|
-
log.info(f"scope_str: {scope_str}")
|
|
120
|
-
|
|
121
|
-
# Enforce OAuth scopes (simulating API Gateway authorizer behavior)
|
|
122
|
-
# Required scope pattern: read|write|delete:<entity>
|
|
123
|
-
if entity and scope_str:
|
|
124
|
-
required_action = {
|
|
125
|
-
"GET": "read",
|
|
126
|
-
"POST": "write",
|
|
127
|
-
"PUT": "write",
|
|
128
|
-
"PATCH": "write",
|
|
129
|
-
"DELETE": "delete",
|
|
130
|
-
}.get(method, "read")
|
|
131
|
-
required_scope = f"{required_action}:{entity}"
|
|
132
|
-
token_scopes = set(str(scope_str).split())
|
|
133
|
-
|
|
134
|
-
def _has_scope(required: str) -> bool:
|
|
135
|
-
return (
|
|
136
|
-
required in token_scopes
|
|
137
|
-
or f"{required_action}:*" in token_scopes
|
|
138
|
-
or "*" in token_scopes
|
|
139
|
-
or "*:*" in token_scopes
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
if not _has_scope(required_scope):
|
|
143
|
-
raise ApplicationException(
|
|
144
|
-
401,
|
|
145
|
-
("insufficient_scope: required_scope=" + required_scope),
|
|
146
|
-
)
|
|
147
|
-
|
|
118
|
+
\
|
|
148
119
|
return Operation(
|
|
149
120
|
entity=entity,
|
|
150
121
|
action=action,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.8.55"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|