maleo-identity 0.0.75__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.75 → maleo_identity-0.0.77}/PKG-INFO +3 -3
- maleo_identity-0.0.77/maleo/identity/client/manager.py +157 -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/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/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.75/maleo_identity/models/tables → maleo_identity-0.0.77/maleo/identity/models}/organization.py +21 -17
- {maleo_identity-0.0.75/maleo_identity/models/tables → maleo_identity-0.0.77/maleo/identity/models}/organization_registration_code.py +11 -15
- {maleo_identity-0.0.75/maleo_identity/models/tables → maleo_identity-0.0.77/maleo/identity/models}/organization_role.py +11 -17
- {maleo_identity-0.0.75/maleo_identity/models/tables → maleo_identity-0.0.77/maleo/identity/models}/user.py +13 -17
- {maleo_identity-0.0.75/maleo_identity/models/tables → maleo_identity-0.0.77/maleo/identity/models}/user_organization.py +15 -25
- {maleo_identity-0.0.75/maleo_identity/models/tables → maleo_identity-0.0.77/maleo/identity/models}/user_organization_role.py +16 -24
- {maleo_identity-0.0.75/maleo_identity/models/tables → maleo_identity-0.0.77/maleo/identity/models}/user_profile.py +16 -14
- 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.75/maleo_identity → maleo_identity-0.0.77/maleo/identity}/types/__init__.py +2 -2
- 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.75 → maleo_identity-0.0.77}/maleo_identity.egg-info/PKG-INFO +3 -3
- maleo_identity-0.0.77/maleo_identity.egg-info/SOURCES.txt +104 -0
- maleo_identity-0.0.77/maleo_identity.egg-info/requires.txt +2 -0
- maleo_identity-0.0.77/maleo_identity.egg-info/top_level.txt +1 -0
- {maleo_identity-0.0.75 → maleo_identity-0.0.77}/pyproject.toml +5 -9
- maleo_identity-0.0.75/maleo_identity/client/controllers/__init__.py +0 -17
- maleo_identity-0.0.75/maleo_identity/client/controllers/http/organization.py +0 -647
- maleo_identity-0.0.75/maleo_identity/client/controllers/http/user.py +0 -541
- maleo_identity-0.0.75/maleo_identity/client/manager.py +0 -77
- maleo_identity-0.0.75/maleo_identity/client/services/__init__.py +0 -11
- maleo_identity-0.0.75/maleo_identity/client/services/organization.py +0 -968
- maleo_identity-0.0.75/maleo_identity/client/services/user.py +0 -817
- maleo_identity-0.0.75/maleo_identity/constants/__init__.py +0 -17
- maleo_identity-0.0.75/maleo_identity/constants/organization.py +0 -13
- maleo_identity-0.0.75/maleo_identity/constants/organization_registration_code.py +0 -14
- maleo_identity-0.0.75/maleo_identity/constants/organization_role.py +0 -22
- maleo_identity-0.0.75/maleo_identity/constants/user.py +0 -27
- maleo_identity-0.0.75/maleo_identity/constants/user_organization.py +0 -46
- maleo_identity-0.0.75/maleo_identity/constants/user_organization_role.py +0 -35
- maleo_identity-0.0.75/maleo_identity/constants/user_profile.py +0 -20
- maleo_identity-0.0.75/maleo_identity/constants/user_system_role.py +0 -9
- maleo_identity-0.0.75/maleo_identity/db.py +0 -6
- maleo_identity-0.0.75/maleo_identity/enums/__init__.py +0 -19
- maleo_identity-0.0.75/maleo_identity/enums/general.py +0 -5
- maleo_identity-0.0.75/maleo_identity/enums/organization.py +0 -11
- maleo_identity-0.0.75/maleo_identity/enums/organization_registration_code.py +0 -8
- maleo_identity-0.0.75/maleo_identity/enums/organization_role.py +0 -7
- maleo_identity-0.0.75/maleo_identity/enums/user.py +0 -16
- maleo_identity-0.0.75/maleo_identity/enums/user_organization.py +0 -14
- maleo_identity-0.0.75/maleo_identity/enums/user_organization_role.py +0 -15
- maleo_identity-0.0.75/maleo_identity/enums/user_profile.py +0 -15
- maleo_identity-0.0.75/maleo_identity/enums/user_system_role.py +0 -5
- maleo_identity-0.0.75/maleo_identity/models/__init__.py +0 -11
- maleo_identity-0.0.75/maleo_identity/models/responses/__init__.py +0 -17
- maleo_identity-0.0.75/maleo_identity/models/responses/organization.py +0 -58
- maleo_identity-0.0.75/maleo_identity/models/responses/organization_registration_code.py +0 -46
- maleo_identity-0.0.75/maleo_identity/models/responses/organization_role.py +0 -25
- maleo_identity-0.0.75/maleo_identity/models/responses/user.py +0 -68
- maleo_identity-0.0.75/maleo_identity/models/responses/user_organization.py +0 -25
- maleo_identity-0.0.75/maleo_identity/models/responses/user_organization_role.py +0 -25
- maleo_identity-0.0.75/maleo_identity/models/responses/user_profile.py +0 -46
- maleo_identity-0.0.75/maleo_identity/models/responses/user_system_role.py +0 -25
- maleo_identity-0.0.75/maleo_identity/models/schemas/__init__.py +0 -19
- maleo_identity-0.0.75/maleo_identity/models/schemas/general.py +0 -18
- maleo_identity-0.0.75/maleo_identity/models/schemas/organization.py +0 -25
- maleo_identity-0.0.75/maleo_identity/models/schemas/organization_registration_code.py +0 -21
- maleo_identity-0.0.75/maleo_identity/models/schemas/organization_role.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/schemas/user.py +0 -44
- maleo_identity-0.0.75/maleo_identity/models/schemas/user_organization.py +0 -8
- maleo_identity-0.0.75/maleo_identity/models/schemas/user_organization_role.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/schemas/user_profile.py +0 -57
- maleo_identity-0.0.75/maleo_identity/models/schemas/user_system_role.py +0 -8
- maleo_identity-0.0.75/maleo_identity/models/tables/__init__.py +0 -19
- maleo_identity-0.0.75/maleo_identity/models/tables/user_system_role.py +0 -24
- maleo_identity-0.0.75/maleo_identity/models/transfers/__init__.py +0 -9
- maleo_identity-0.0.75/maleo_identity/models/transfers/general/__init__.py +0 -17
- maleo_identity-0.0.75/maleo_identity/models/transfers/general/organization.py +0 -31
- maleo_identity-0.0.75/maleo_identity/models/transfers/general/organization_registration_code.py +0 -19
- maleo_identity-0.0.75/maleo_identity/models/transfers/general/organization_role.py +0 -20
- maleo_identity-0.0.75/maleo_identity/models/transfers/general/user.py +0 -28
- maleo_identity-0.0.75/maleo_identity/models/transfers/general/user_organization.py +0 -18
- maleo_identity-0.0.75/maleo_identity/models/transfers/general/user_organization_role.py +0 -19
- maleo_identity-0.0.75/maleo_identity/models/transfers/general/user_profile.py +0 -32
- maleo_identity-0.0.75/maleo_identity/models/transfers/general/user_system_role.py +0 -17
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/__init__.py +0 -9
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/client/__init__.py +0 -17
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/client/organization.py +0 -77
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/client/organization_registration_code.py +0 -24
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/client/organization_role.py +0 -33
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/client/user.py +0 -34
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/client/user_organization.py +0 -45
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/client/user_organization_role.py +0 -36
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/client/user_profile.py +0 -23
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/client/user_system_role.py +0 -33
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/general/__init__.py +0 -17
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/general/organization.py +0 -35
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/general/organization_registration_code.py +0 -33
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/general/organization_role.py +0 -17
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/general/user.py +0 -77
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/general/user_organization.py +0 -31
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/general/user_organization_role.py +0 -18
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/general/user_profile.py +0 -55
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/general/user_system_role.py +0 -29
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/service/__init__.py +0 -17
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/service/organization.py +0 -66
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/service/organization_registration_code.py +0 -19
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/service/organization_role.py +0 -26
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/service/user.py +0 -34
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/service/user_organization.py +0 -31
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/service/user_organization_role.py +0 -28
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/service/user_profile.py +0 -23
- maleo_identity-0.0.75/maleo_identity/models/transfers/parameters/service/user_system_role.py +0 -26
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/__init__.py +0 -5
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/client/__init__.py +0 -17
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/client/organization.py +0 -21
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/client/organization_registration_code.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/client/organization_role.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/client/user.py +0 -24
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/client/user_organization.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/client/user_organization_role.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/client/user_profile.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/client/user_system_role.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/service/organization.py +0 -21
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/service/organization_registration_code.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/service/organization_role.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/service/user.py +0 -24
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/service/user_organization.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/service/user_organization_role.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/service/user_profile.py +0 -15
- maleo_identity-0.0.75/maleo_identity/models/transfers/results/service/user_system_role.py +0 -15
- maleo_identity-0.0.75/maleo_identity/types/results/__init__.py +0 -5
- maleo_identity-0.0.75/maleo_identity/types/results/client/__init__.py +0 -17
- maleo_identity-0.0.75/maleo_identity/types/results/client/organization.py +0 -30
- maleo_identity-0.0.75/maleo_identity/types/results/client/organization_registration_code.py +0 -20
- maleo_identity-0.0.75/maleo_identity/types/results/client/organization_role.py +0 -14
- maleo_identity-0.0.75/maleo_identity/types/results/client/user.py +0 -29
- maleo_identity-0.0.75/maleo_identity/types/results/client/user_organization.py +0 -19
- maleo_identity-0.0.75/maleo_identity/types/results/client/user_organization_role.py +0 -14
- maleo_identity-0.0.75/maleo_identity/types/results/client/user_profile.py +0 -19
- maleo_identity-0.0.75/maleo_identity/types/results/client/user_system_role.py +0 -19
- maleo_identity-0.0.75/maleo_identity/types/results/service/organization.py +0 -32
- maleo_identity-0.0.75/maleo_identity/types/results/service/organization_registration_code.py +0 -21
- maleo_identity-0.0.75/maleo_identity/types/results/service/organization_role.py +0 -15
- maleo_identity-0.0.75/maleo_identity/types/results/service/user.py +0 -30
- maleo_identity-0.0.75/maleo_identity/types/results/service/user_organization.py +0 -20
- maleo_identity-0.0.75/maleo_identity/types/results/service/user_organization_role.py +0 -15
- maleo_identity-0.0.75/maleo_identity/types/results/service/user_profile.py +0 -20
- maleo_identity-0.0.75/maleo_identity/types/results/service/user_system_role.py +0 -20
- maleo_identity-0.0.75/maleo_identity.egg-info/SOURCES.txt +0 -143
- maleo_identity-0.0.75/maleo_identity.egg-info/requires.txt +0 -2
- maleo_identity-0.0.75/maleo_identity.egg-info/top_level.txt +0 -1
- {maleo_identity-0.0.75 → maleo_identity-0.0.77}/README.md +0 -0
- {maleo_identity-0.0.75/maleo_identity → maleo_identity-0.0.77/maleo/identity}/__init__.py +0 -0
- {maleo_identity-0.0.75/maleo_identity → maleo_identity-0.0.77/maleo/identity}/client/__init__.py +0 -0
- {maleo_identity-0.0.75/maleo_identity/client/controllers/http → maleo_identity-0.0.77/maleo/identity/client/services}/__init__.py +0 -0
- {maleo_identity-0.0.75/maleo_identity/models/transfers/results/service → maleo_identity-0.0.77/maleo/identity/constants}/__init__.py +0 -0
- {maleo_identity-0.0.75/maleo_identity/types/results/service → maleo_identity-0.0.77/maleo/identity/dtos}/__init__.py +0 -0
- {maleo_identity-0.0.75 → maleo_identity-0.0.77}/maleo_identity.egg-info/dependency_links.txt +0 -0
- {maleo_identity-0.0.75 → maleo_identity-0.0.77}/setup.cfg +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maleo-identity
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.77
|
|
4
4
|
Summary: MaleoIdentity service package
|
|
5
5
|
Author-email: Agra Bima Yuda <agra@nexmedis.com>
|
|
6
6
|
License: MIT
|
|
7
7
|
Requires-Python: >=3.7
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
|
-
Requires-Dist:
|
|
10
|
-
Requires-Dist: maleo_metadata>=0.
|
|
9
|
+
Requires-Dist: maleo_soma>=0.1.58
|
|
10
|
+
Requires-Dist: maleo_metadata>=0.2.15
|
|
11
11
|
|
|
12
12
|
# README #
|
|
13
13
|
|
|
@@ -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
|
+
)
|