aws-python-helper 1.3.0__tar.gz → 1.4.0__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.
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/PKG-INFO +1 -1
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/api/dispatcher.py +9 -2
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper.egg-info/PKG-INFO +1 -1
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/pyproject.toml +1 -1
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/README.md +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/api/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/api/auth_middleware.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/api/auth_validators.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/api/base.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/api/exceptions.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/api/fetcher.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/api/handler.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/context/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/context/session.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/context/state_validator.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/database/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/database/database_proxy.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/database/external_database_proxy.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/database/external_mongo_manager.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/database/mongo_manager.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/fargate/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/fargate/executor.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/fargate/fetcher.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/fargate/handler.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/fargate/task_base.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/invoker/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/invoker/api_client.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/invoker/exceptions.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/invoker/lambda_invoker.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/lambda_standalone/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/lambda_standalone/base.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/lambda_standalone/fetcher.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/lambda_standalone/handler.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/model_index_sync/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/model_index_sync/base.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/model_query/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/model_query/base.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/permissions/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/permissions/catalog.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/repository/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/repository/base.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/sns/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/sns/publisher.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/sqs/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/sqs/consumer_base.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/sqs/fetcher.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/sqs/handler.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/utils/__init__.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/utils/json_encoder.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/utils/response.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/utils/serializer.py +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper.egg-info/SOURCES.txt +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper.egg-info/dependency_links.txt +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper.egg-info/requires.txt +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper.egg-info/top_level.txt +0 -0
- {aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/setup.cfg +0 -0
|
@@ -79,8 +79,15 @@ class Dispatcher:
|
|
|
79
79
|
# 2. Authorization based on mode
|
|
80
80
|
authorization = os.getenv('AUTHORIZATION', '').lower()
|
|
81
81
|
requires_user = authorization in ('user', 'full', 'permission')
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
requires_permission = authorization == 'permission'
|
|
83
|
+
|
|
84
|
+
# Pedir el state es independiente de pedir un permiso, así que va por
|
|
85
|
+
# su propia variable. Los valores viejos `state` y `full` la implican,
|
|
86
|
+
# para que un servicio sin migrar siga comportándose igual.
|
|
87
|
+
requires_state = (
|
|
88
|
+
authorization in ('state', 'full')
|
|
89
|
+
or os.getenv('REQUIRES_STATE', '').lower() in ('1', 'true', 'yes')
|
|
90
|
+
)
|
|
84
91
|
|
|
85
92
|
# 2a. Authenticate (if mode requires user)
|
|
86
93
|
if requires_user:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/api/auth_middleware.py
RENAMED
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/api/auth_validators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/context/state_validator.py
RENAMED
|
File without changes
|
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/database/database_proxy.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/database/mongo_manager.py
RENAMED
|
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
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/invoker/lambda_invoker.py
RENAMED
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/lambda_standalone/__init__.py
RENAMED
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/lambda_standalone/base.py
RENAMED
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/lambda_standalone/fetcher.py
RENAMED
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/lambda_standalone/handler.py
RENAMED
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/model_index_sync/__init__.py
RENAMED
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/model_index_sync/base.py
RENAMED
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/model_query/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/permissions/__init__.py
RENAMED
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/permissions/catalog.py
RENAMED
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper/repository/__init__.py
RENAMED
|
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
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{aws_python_helper-1.3.0 → aws_python_helper-1.4.0}/aws_python_helper.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|