maleo-identity 0.0.76__tar.gz → 0.0.77__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.
Potentially problematic release.
This version of maleo-identity might be problematic. Click here for more details.
- {maleo_identity-0.0.76 → maleo_identity-0.0.77}/PKG-INFO +1 -1
- maleo_identity-0.0.77/maleo/identity/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/client/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/client/manager.py +157 -0
- maleo_identity-0.0.77/maleo/identity/client/services/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/client/services/organization.py +1944 -0
- maleo_identity-0.0.77/maleo/identity/client/services/organization_registration_code.py +470 -0
- maleo_identity-0.0.77/maleo/identity/client/services/organization_role.py +276 -0
- maleo_identity-0.0.77/maleo/identity/client/services/user.py +1559 -0
- maleo_identity-0.0.77/maleo/identity/client/services/user_organization.py +276 -0
- maleo_identity-0.0.77/maleo/identity/client/services/user_organization_role.py +278 -0
- maleo_identity-0.0.77/maleo/identity/client/services/user_profile.py +276 -0
- maleo_identity-0.0.77/maleo/identity/client/services/user_system_role.py +276 -0
- maleo_identity-0.0.77/maleo/identity/constants/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/constants/organization.py +18 -0
- maleo_identity-0.0.77/maleo/identity/constants/organization_registration_code.py +25 -0
- maleo_identity-0.0.77/maleo/identity/constants/organization_role.py +35 -0
- maleo_identity-0.0.77/maleo/identity/constants/user.py +24 -0
- maleo_identity-0.0.77/maleo/identity/constants/user_organization.py +58 -0
- maleo_identity-0.0.77/maleo/identity/constants/user_organization_role.py +47 -0
- maleo_identity-0.0.77/maleo/identity/constants/user_profile.py +26 -0
- maleo_identity-0.0.77/maleo/identity/constants/user_system_role.py +16 -0
- maleo_identity-0.0.77/maleo/identity/db.py +4 -0
- maleo_identity-0.0.77/maleo/identity/dtos/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/dtos/organization_registration_code.py +12 -0
- maleo_identity-0.0.77/maleo/identity/enums/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/enums/general.py +5 -0
- maleo_identity-0.0.77/maleo/identity/enums/organization.py +12 -0
- maleo_identity-0.0.77/maleo/identity/enums/organization_registration_code.py +8 -0
- maleo_identity-0.0.77/maleo/identity/enums/organization_role.py +7 -0
- maleo_identity-0.0.77/maleo/identity/enums/user.py +17 -0
- maleo_identity-0.0.77/maleo/identity/enums/user_organization.py +14 -0
- maleo_identity-0.0.77/maleo/identity/enums/user_organization_role.py +15 -0
- maleo_identity-0.0.77/maleo/identity/enums/user_profile.py +17 -0
- maleo_identity-0.0.77/maleo/identity/enums/user_system_role.py +5 -0
- maleo_identity-0.0.77/maleo/identity/mixins/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/mixins/organization.py +15 -0
- maleo_identity-0.0.77/maleo/identity/mixins/organization_registration_code.py +14 -0
- maleo_identity-0.0.77/maleo/identity/mixins/organization_role.py +15 -0
- maleo_identity-0.0.77/maleo/identity/mixins/user.py +47 -0
- maleo_identity-0.0.77/maleo/identity/mixins/user_organization.py +6 -0
- maleo_identity-0.0.77/maleo/identity/mixins/user_organization_role.py +6 -0
- maleo_identity-0.0.77/maleo/identity/mixins/user_profile.py +81 -0
- maleo_identity-0.0.77/maleo/identity/mixins/user_system_role.py +6 -0
- maleo_identity-0.0.77/maleo/identity/models/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/models/organization.py +62 -0
- maleo_identity-0.0.77/maleo/identity/models/organization_registration_code.py +33 -0
- maleo_identity-0.0.77/maleo/identity/models/organization_role.py +37 -0
- maleo_identity-0.0.77/maleo/identity/models/user.py +39 -0
- maleo_identity-0.0.77/maleo/identity/models/user_organization.py +48 -0
- maleo_identity-0.0.77/maleo/identity/models/user_organization_role.py +61 -0
- maleo_identity-0.0.77/maleo/identity/models/user_profile.py +33 -0
- maleo_identity-0.0.77/maleo/identity/models/user_system_role.py +26 -0
- maleo_identity-0.0.77/maleo/identity/schemas/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/schemas/data/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/schemas/data/organization.py +36 -0
- maleo_identity-0.0.77/maleo/identity/schemas/data/organization_registration_code.py +33 -0
- maleo_identity-0.0.77/maleo/identity/schemas/data/organization_role.py +32 -0
- maleo_identity-0.0.77/maleo/identity/schemas/data/user.py +33 -0
- maleo_identity-0.0.77/maleo/identity/schemas/data/user_organization.py +23 -0
- maleo_identity-0.0.77/maleo/identity/schemas/data/user_organization_role.py +13 -0
- maleo_identity-0.0.77/maleo/identity/schemas/data/user_profile.py +59 -0
- maleo_identity-0.0.77/maleo/identity/schemas/data/user_system_role.py +25 -0
- maleo_identity-0.0.77/maleo/identity/schemas/metadata/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/schemas/metadata/user.py +6 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/client/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/client/organization.py +74 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/client/organization_registration_code.py +24 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/client/organization_role.py +42 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/client/user.py +44 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/client/user_organization.py +62 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/client/user_organization_role.py +49 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/client/user_profile.py +28 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/client/user_system_role.py +43 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/general/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/general/organization.py +43 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/general/organization_registration_code.py +30 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/general/organization_role.py +14 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/general/user.py +101 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/general/user_organization.py +18 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/general/user_organization_role.py +15 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/general/user_profile.py +82 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/general/user_system_role.py +30 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/service/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/service/organization.py +60 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/service/organization_registration_code.py +24 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/service/organization_role.py +35 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/service/user.py +47 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/service/user_organization_role.py +36 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/service/user_profile.py +28 -0
- maleo_identity-0.0.77/maleo/identity/schemas/parameter/service/user_system_role.py +31 -0
- maleo_identity-0.0.77/maleo/identity/types/__init__.py +5 -0
- maleo_identity-0.0.77/maleo/identity/types/base/__init__.py +0 -0
- maleo_identity-0.0.77/maleo/identity/types/base/organization.py +5 -0
- maleo_identity-0.0.77/maleo/identity/types/base/organization_registration_code.py +4 -0
- maleo_identity-0.0.77/maleo/identity/types/base/user.py +5 -0
- maleo_identity-0.0.77/maleo/identity/types/base/user_profile.py +4 -0
- {maleo_identity-0.0.76 → maleo_identity-0.0.77}/maleo_identity.egg-info/PKG-INFO +1 -1
- maleo_identity-0.0.77/maleo_identity.egg-info/SOURCES.txt +104 -0
- maleo_identity-0.0.77/maleo_identity.egg-info/top_level.txt +1 -0
- {maleo_identity-0.0.76 → maleo_identity-0.0.77}/pyproject.toml +3 -7
- maleo_identity-0.0.76/maleo_identity.egg-info/SOURCES.txt +0 -7
- maleo_identity-0.0.76/maleo_identity.egg-info/top_level.txt +0 -1
- {maleo_identity-0.0.76 → maleo_identity-0.0.77}/README.md +0 -0
- {maleo_identity-0.0.76 → maleo_identity-0.0.77}/maleo_identity.egg-info/dependency_links.txt +0 -0
- {maleo_identity-0.0.76 → maleo_identity-0.0.77}/maleo_identity.egg-info/requires.txt +0 -0
- {maleo_identity-0.0.76 → maleo_identity-0.0.77}/setup.cfg +0 -0
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
from Crypto.PublicKey.RSA import RsaKey
|
|
2
|
+
from redis.asyncio.client import Redis
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from maleo.soma.dtos.configurations.cache.redis import RedisCacheNamespaces
|
|
5
|
+
from maleo.soma.dtos.configurations.client.maleo import MaleoClientConfigurationDTO
|
|
6
|
+
from maleo.soma.managers.client.maleo import MaleoClientManager
|
|
7
|
+
from maleo.soma.managers.credential import CredentialManager
|
|
8
|
+
from maleo.soma.schemas.service import ServiceContext
|
|
9
|
+
from maleo.soma.utils.logging import SimpleConfig
|
|
10
|
+
from maleo.identity.client.services.organization_registration_code import (
|
|
11
|
+
OrganizationRegistrationCodeClientService,
|
|
12
|
+
)
|
|
13
|
+
from maleo.identity.client.services.organization_role import (
|
|
14
|
+
OrganizationRoleClientService,
|
|
15
|
+
)
|
|
16
|
+
from maleo.identity.client.services.organization import OrganizationClientService
|
|
17
|
+
from maleo.identity.client.services.user_organization_role import (
|
|
18
|
+
UserOrganizationRoleClientService,
|
|
19
|
+
)
|
|
20
|
+
from maleo.identity.client.services.user_organization import (
|
|
21
|
+
UserOrganizationClientService,
|
|
22
|
+
)
|
|
23
|
+
from maleo.identity.client.services.user_profile import UserProfileClientService
|
|
24
|
+
from maleo.identity.client.services.user_system_role import UserSystemRoleClientService
|
|
25
|
+
from maleo.identity.client.services.user import UserClientService
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class ClientManager(MaleoClientManager):
|
|
29
|
+
def __init__(
|
|
30
|
+
self,
|
|
31
|
+
configurations: MaleoClientConfigurationDTO,
|
|
32
|
+
log_config: SimpleConfig,
|
|
33
|
+
credential_manager: CredentialManager,
|
|
34
|
+
private_key: RsaKey,
|
|
35
|
+
redis: Redis,
|
|
36
|
+
redis_namespaces: RedisCacheNamespaces,
|
|
37
|
+
service_context: Optional[ServiceContext] = None,
|
|
38
|
+
):
|
|
39
|
+
assert configurations.key == "maleo-identity"
|
|
40
|
+
assert configurations.name == "MaleoIdentity"
|
|
41
|
+
super().__init__(
|
|
42
|
+
configurations,
|
|
43
|
+
log_config,
|
|
44
|
+
credential_manager,
|
|
45
|
+
private_key,
|
|
46
|
+
redis,
|
|
47
|
+
redis_namespaces,
|
|
48
|
+
service_context,
|
|
49
|
+
)
|
|
50
|
+
self._initialize_services()
|
|
51
|
+
self._logger.info("Client manager initialized successfully")
|
|
52
|
+
|
|
53
|
+
def _initialize_services(self):
|
|
54
|
+
self.organization_registration_code = OrganizationRegistrationCodeClientService(
|
|
55
|
+
environment=self._environment,
|
|
56
|
+
key=self._key,
|
|
57
|
+
url=self._url,
|
|
58
|
+
operation_origin=self._operation_origin,
|
|
59
|
+
logger=self._logger,
|
|
60
|
+
credential_manager=self._credential_manager,
|
|
61
|
+
http_client_manager=self._http_client_manager,
|
|
62
|
+
private_key=self._private_key,
|
|
63
|
+
redis=self._redis,
|
|
64
|
+
redis_namespaces=self._redis_namespaces,
|
|
65
|
+
service_context=self._service_context,
|
|
66
|
+
)
|
|
67
|
+
self.organization_role = OrganizationRoleClientService(
|
|
68
|
+
environment=self._environment,
|
|
69
|
+
key=self._key,
|
|
70
|
+
url=self._url,
|
|
71
|
+
operation_origin=self._operation_origin,
|
|
72
|
+
logger=self._logger,
|
|
73
|
+
credential_manager=self._credential_manager,
|
|
74
|
+
http_client_manager=self._http_client_manager,
|
|
75
|
+
private_key=self._private_key,
|
|
76
|
+
redis=self._redis,
|
|
77
|
+
redis_namespaces=self._redis_namespaces,
|
|
78
|
+
service_context=self._service_context,
|
|
79
|
+
)
|
|
80
|
+
self.organization = OrganizationClientService(
|
|
81
|
+
environment=self._environment,
|
|
82
|
+
key=self._key,
|
|
83
|
+
url=self._url,
|
|
84
|
+
operation_origin=self._operation_origin,
|
|
85
|
+
logger=self._logger,
|
|
86
|
+
credential_manager=self._credential_manager,
|
|
87
|
+
http_client_manager=self._http_client_manager,
|
|
88
|
+
private_key=self._private_key,
|
|
89
|
+
redis=self._redis,
|
|
90
|
+
redis_namespaces=self._redis_namespaces,
|
|
91
|
+
service_context=self._service_context,
|
|
92
|
+
)
|
|
93
|
+
self.user_organization_role = UserOrganizationRoleClientService(
|
|
94
|
+
environment=self._environment,
|
|
95
|
+
key=self._key,
|
|
96
|
+
url=self._url,
|
|
97
|
+
operation_origin=self._operation_origin,
|
|
98
|
+
logger=self._logger,
|
|
99
|
+
credential_manager=self._credential_manager,
|
|
100
|
+
http_client_manager=self._http_client_manager,
|
|
101
|
+
private_key=self._private_key,
|
|
102
|
+
redis=self._redis,
|
|
103
|
+
redis_namespaces=self._redis_namespaces,
|
|
104
|
+
service_context=self._service_context,
|
|
105
|
+
)
|
|
106
|
+
self.user_organization = UserOrganizationClientService(
|
|
107
|
+
environment=self._environment,
|
|
108
|
+
key=self._key,
|
|
109
|
+
url=self._url,
|
|
110
|
+
operation_origin=self._operation_origin,
|
|
111
|
+
logger=self._logger,
|
|
112
|
+
credential_manager=self._credential_manager,
|
|
113
|
+
http_client_manager=self._http_client_manager,
|
|
114
|
+
private_key=self._private_key,
|
|
115
|
+
redis=self._redis,
|
|
116
|
+
redis_namespaces=self._redis_namespaces,
|
|
117
|
+
service_context=self._service_context,
|
|
118
|
+
)
|
|
119
|
+
self.user_profile = UserProfileClientService(
|
|
120
|
+
environment=self._environment,
|
|
121
|
+
key=self._key,
|
|
122
|
+
url=self._url,
|
|
123
|
+
operation_origin=self._operation_origin,
|
|
124
|
+
logger=self._logger,
|
|
125
|
+
credential_manager=self._credential_manager,
|
|
126
|
+
http_client_manager=self._http_client_manager,
|
|
127
|
+
private_key=self._private_key,
|
|
128
|
+
redis=self._redis,
|
|
129
|
+
redis_namespaces=self._redis_namespaces,
|
|
130
|
+
service_context=self._service_context,
|
|
131
|
+
)
|
|
132
|
+
self.user_system_role = UserSystemRoleClientService(
|
|
133
|
+
environment=self._environment,
|
|
134
|
+
key=self._key,
|
|
135
|
+
url=self._url,
|
|
136
|
+
operation_origin=self._operation_origin,
|
|
137
|
+
logger=self._logger,
|
|
138
|
+
credential_manager=self._credential_manager,
|
|
139
|
+
http_client_manager=self._http_client_manager,
|
|
140
|
+
private_key=self._private_key,
|
|
141
|
+
redis=self._redis,
|
|
142
|
+
redis_namespaces=self._redis_namespaces,
|
|
143
|
+
service_context=self._service_context,
|
|
144
|
+
)
|
|
145
|
+
self.user = UserClientService(
|
|
146
|
+
environment=self._environment,
|
|
147
|
+
key=self._key,
|
|
148
|
+
url=self._url,
|
|
149
|
+
operation_origin=self._operation_origin,
|
|
150
|
+
logger=self._logger,
|
|
151
|
+
credential_manager=self._credential_manager,
|
|
152
|
+
http_client_manager=self._http_client_manager,
|
|
153
|
+
private_key=self._private_key,
|
|
154
|
+
redis=self._redis,
|
|
155
|
+
redis_namespaces=self._redis_namespaces,
|
|
156
|
+
service_context=self._service_context,
|
|
157
|
+
)
|
|
File without changes
|