alpha-python 0.7.8__tar.gz → 0.7.9__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.
- {alpha_python-0.7.8 → alpha_python-0.7.9}/PKG-INFO +1 -1
- {alpha_python-0.7.8 → alpha_python-0.7.9}/pyproject.toml +1 -1
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/domain/models/user.py +13 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/connectors/sql_alchemy.py +2 -2
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/providers/models/identity.py +13 -6
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/services/authentication_service.py +2 -1
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/openapi_test/container.py +3 -1
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/openapi_test/models.py +3 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha_python.egg-info/PKG-INFO +1 -1
- {alpha_python-0.7.8 → alpha_python-0.7.9}/LICENSE +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/README.md +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/setup.cfg +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/adapters/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/adapters/rest_api_unit_of_work.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/adapters/sqla_unit_of_work.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/cli.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/containers/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/containers/container.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/domain/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/domain/models/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/domain/models/base_model.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/domain/models/group.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/domain/models/life_cycle_base.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/domain/models/permission.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/domain/models/role.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/encoder.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/exceptions.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/_type_conversion_matrix.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/_type_mapping.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/class_factories.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/default_field_factory.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/field_iterator.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/jwt_factory.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/logging_handler_factory.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/model_class_factory.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/models/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/models/factory_classes.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/password_factory.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/request_factory.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/response_factory.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/factories/type_factories.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/api_generate_handler.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/api_run_handler.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/base_handler.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/gen-code.sh +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/models/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/models/argument.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/models/command.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/models/section.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/models/subparser.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/run-api.sh +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/Dockerfile.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/README.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/__init__model.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/__init__test.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/__main__.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/base_model.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/controller.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/controller_test.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/dockerignore.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/encoder.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/git_push.sh.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/gitignore.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/model.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/openapi.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/param_type.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/requirements.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/security_controller_.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/setup.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/test-requirements.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/tox.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/travis.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/typing_utils.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/util.mustache +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/connectors/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/connectors/ldap_connector.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/connectors/oidc_connector.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/databases/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/databases/sql_alchemy.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/models/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/models/filter_operators.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/models/json_patch.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/models/order_by.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/models/query_clause.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/infra/models/search_filter.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/api_repository.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/attrs_instance.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/dataclass_instance.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/factories.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/handler.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/http_client.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/openapi_model.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/patchable.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/providers.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/pydantic_instance.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/refresh_repository.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/sql_database.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/sql_mapper.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/sql_repository.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/token_factory.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/unit_of_work.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/interfaces/updatable.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/mixins/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/mixins/group_lifecycle.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/mixins/jwt_provider.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/mixins/user_lifecycle.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/providers/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/providers/api_key_provider.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/providers/database_provider.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/providers/ldap_provider.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/providers/models/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/providers/models/credentials.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/providers/models/token.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/providers/oidc_provider.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/py.typed +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/models/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/models/repository_model.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/refresh/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/refresh/cache_repository.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/refresh/database_repository.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/refresh/file_repository.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/refresh/memory_repository.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/rest_api_repository.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/sql_alchemy_repository.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/services/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/services/models/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/services/models/cookie.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/services/user_lifecycle_management.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/_http_codes.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/cookie.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/is_attrs.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/is_pydantic.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/logging_configurator.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/logging_level_checker.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/openapi_test/__init__.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/openapi_test/exceptions.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/openapi_test/orm.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/openapi_test/response.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/openapi_test/service.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/request_headers.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/response_object.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/secret_generator.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/verify_identity.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/utils/version_checker.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha_python.egg-info/SOURCES.txt +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha_python.egg-info/dependency_links.txt +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha_python.egg-info/entry_points.txt +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha_python.egg-info/requires.txt +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha_python.egg-info/top_level.txt +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/tests/test_cli.py +0 -0
- {alpha_python-0.7.8 → alpha_python-0.7.9}/tests/test_encoder.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alpha-python
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.9
|
|
4
4
|
Summary: Alpha is intended to be the first dependency you need to add to your Python application. It is a Python library which contains standard building blocks that can be used in applications that are used as APIs and/or make use of database interaction.
|
|
5
5
|
Author-email: Bart Reijling <bart@reijling.eu>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "alpha-python"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.9"
|
|
4
4
|
description = "Alpha is intended to be the first dependency you need to add to your Python application. It is a Python library which contains standard building blocks that can be used in applications that are used as APIs and/or make use of database interaction."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -205,3 +205,16 @@ class User(LifeCycleBase, BaseDomainModel):
|
|
|
205
205
|
self.admin = obj.admin
|
|
206
206
|
|
|
207
207
|
return cast(DomainModel, self)
|
|
208
|
+
|
|
209
|
+
def update_from_identity(self, identity: Identity) -> Self:
|
|
210
|
+
"""Update the User instance with data from an Identity instance. Only
|
|
211
|
+
the email and display name are updated.
|
|
212
|
+
|
|
213
|
+
Parameters
|
|
214
|
+
----------
|
|
215
|
+
identity
|
|
216
|
+
Identity object to update from.
|
|
217
|
+
"""
|
|
218
|
+
self.email = identity.email
|
|
219
|
+
self.display_name = identity.display_name
|
|
220
|
+
return self
|
|
@@ -32,7 +32,7 @@ class SqlAlchemyDatabase:
|
|
|
32
32
|
db_name
|
|
33
33
|
Database name, by default ""
|
|
34
34
|
db_type
|
|
35
|
-
Database type, by default "postgresql"
|
|
35
|
+
Database type and driver, by default "postgresql+psycopg2"
|
|
36
36
|
conn_str
|
|
37
37
|
Connection string. Can be used instead of host, port, username,
|
|
38
38
|
password, and db_name, by default None
|
|
@@ -55,7 +55,7 @@ class SqlAlchemyDatabase:
|
|
|
55
55
|
username: str = "",
|
|
56
56
|
password: str = "",
|
|
57
57
|
db_name: str = "",
|
|
58
|
-
db_type: str = "postgresql",
|
|
58
|
+
db_type: str = "postgresql+psycopg2",
|
|
59
59
|
conn_str: str | None = None,
|
|
60
60
|
schema_name: str = "public",
|
|
61
61
|
create_schema: bool = True,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
from dataclasses import dataclass
|
|
4
|
+
from enum import Enum
|
|
4
5
|
from typing import Mapping, Any, Self, Sequence, TYPE_CHECKING, cast
|
|
5
6
|
from datetime import datetime, timezone
|
|
6
7
|
|
|
@@ -321,18 +322,24 @@ class Identity:
|
|
|
321
322
|
User object to update from.
|
|
322
323
|
"""
|
|
323
324
|
self.username = user.username
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
325
|
+
self.role = (
|
|
326
|
+
user.role.name if isinstance(user.role, Enum) else user.role
|
|
327
|
+
)
|
|
328
|
+
self.admin = user.admin
|
|
328
329
|
for permission in user.permissions or []:
|
|
329
330
|
self.permissions = self._append_on_sequence(
|
|
330
331
|
self.permissions, str(permission)
|
|
331
332
|
)
|
|
332
333
|
for group in user.groups or []:
|
|
333
334
|
self.groups = self._append_on_sequence(self.groups, str(group))
|
|
334
|
-
|
|
335
|
-
|
|
335
|
+
|
|
336
|
+
# Update email and display name only if they are not already set. This
|
|
337
|
+
# ensures that existing values which are provided by an identity
|
|
338
|
+
# provider are not overwritten.
|
|
339
|
+
if not self.email:
|
|
340
|
+
self.email = user.email
|
|
341
|
+
if not self.display_name:
|
|
342
|
+
self.display_name = user.display_name
|
|
336
343
|
|
|
337
344
|
def update_from_groups(self, groups: list[Group]) -> None:
|
|
338
345
|
"""Update the Identity permissions with data from a list of Group
|
|
@@ -622,12 +622,13 @@ class AuthenticationService:
|
|
|
622
622
|
)
|
|
623
623
|
if user:
|
|
624
624
|
identity.update_from_user(user)
|
|
625
|
+
user.update_from_identity(identity)
|
|
625
626
|
|
|
626
627
|
else:
|
|
627
628
|
# Create new user from identity if not found in database
|
|
628
629
|
user = self._user_model.from_identity(identity)
|
|
629
630
|
users.add(user)
|
|
630
|
-
|
|
631
|
+
self.uow.commit()
|
|
631
632
|
|
|
632
633
|
return identity
|
|
633
634
|
|
|
@@ -147,7 +147,9 @@ def init_container():
|
|
|
147
147
|
"username": os.getenv("TEST_PSQL_USERNAME", "postgres"),
|
|
148
148
|
"password": os.getenv("TEST_PSQL_PASSWORD", "postgres"),
|
|
149
149
|
"db_name": os.getenv("TEST_PSQL_DB_NAME", "postgres"),
|
|
150
|
-
"db_type": os.getenv(
|
|
150
|
+
"db_type": os.getenv(
|
|
151
|
+
"TEST_PSQL_DB_TYPE", "postgresql+psycopg2"
|
|
152
|
+
),
|
|
151
153
|
},
|
|
152
154
|
"authentication": {
|
|
153
155
|
"use_cookies": True,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alpha-python
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.9
|
|
4
4
|
Summary: Alpha is intended to be the first dependency you need to add to your Python application. It is a Python library which contains standard building blocks that can be used in applications that are used as APIs and/or make use of database interaction.
|
|
5
5
|
Author-email: Bart Reijling <bart@reijling.eu>
|
|
6
6
|
License-Expression: MIT
|
|
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
|
|
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
|
{alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/README.mustache
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
|
{alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/encoder.mustache
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/model.mustache
RENAMED
|
File without changes
|
{alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/openapi.mustache
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/setup.mustache
RENAMED
|
File without changes
|
|
File without changes
|
{alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/tox.mustache
RENAMED
|
File without changes
|
{alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/travis.mustache
RENAMED
|
File without changes
|
|
File without changes
|
{alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/handlers/templates/python-flask/util.mustache
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
|
|
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
|
|
File without changes
|
|
File without changes
|
{alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/refresh/cache_repository.py
RENAMED
|
File without changes
|
{alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/refresh/database_repository.py
RENAMED
|
File without changes
|
|
File without changes
|
{alpha_python-0.7.8 → alpha_python-0.7.9}/src/alpha/repositories/refresh/memory_repository.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
|
|
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
|