Encryptors 2.67__tar.gz → 2.68__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.
- {encryptors-2.67 → encryptors-2.68}/PKG-INFO +1 -1
- {encryptors-2.67 → encryptors-2.68}/setup.py +1 -1
- {encryptors-2.67 → encryptors-2.68}/src/Encryptors.egg-info/PKG-INFO +1 -1
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Decorators/SecureResolver.py +8 -7
- {encryptors-2.67 → encryptors-2.68}/README.md +0 -0
- {encryptors-2.67 → encryptors-2.68}/setup.cfg +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Encryptors.egg-info/SOURCES.txt +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Encryptors.egg-info/dependency_links.txt +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Encryptors.egg-info/entry_points.txt +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Encryptors.egg-info/requires.txt +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Encryptors.egg-info/top_level.txt +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Cache/Redis.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Cache/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Cli/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Constants/Constant.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Constants/Message.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Constants/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Context/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Database/BaseRepository.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Database/Connection.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Database/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Decorators/Grpc.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Decorators/Retry.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Decorators/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Encryptor/Aes.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Encryptor/Argon2.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Encryptor/Bcrypt.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Encryptor/Jwt.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Encryptor/Rsa.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Encryptor/Sha512.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Encryptor/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Enums/AuditType.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Enums/CipherType.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Enums/FileType.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Enums/GrahpqlOperation.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Enums/Profile.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Enums/ResultType.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Enums/StatusCode.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Enums/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Exception/ControlledException.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Exception/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Helpers/AuditHelper.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Helpers/AuditQueue.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Helpers/AuthTokenProcessor.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Helpers/AzureClassifier.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Helpers/CipherHelper.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Helpers/GrpcConnection.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Helpers/JwtTokenHelper.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Helpers/Resilience.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Helpers/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Http/APIClient.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Http/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Messaging/AzureServiceBus.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Messaging/Kafka.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Messaging/RabbitMQ.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Messaging/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Models/ApiResponse.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Models/AuditContext.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Models/Graphql.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Models/Notification.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Models/Response.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Models/Token.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Models/TokenClaims.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Models/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Secrets/AzureKeyVaultProvider.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Secrets/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Services/JwtAuthTokenService.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Services/ServiceBusAuditEmitter.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Services/WebsocketClient.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Services/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Storage/AzureBlobStorage.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Storage/S3Storage.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Storage/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/CaseConverter.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/CodeGenerator.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/DataNormalizer.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/DataUtils.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/DateUtils.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/FileMetaData.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/HashValidator.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/Mapper.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/PasswordGenerator.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/QueryGenerator.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/RsaUtils.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/TextProcessor.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/Utils/__init__.py +0 -0
- {encryptors-2.67 → encryptors-2.68}/src/Osdental/__init__.py +0 -0
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
# ANDERSON REVISAR EL CACHE LOCAL DEL KEYVAULT PARA VALIDAR SI FUNCIONA
|
|
3
3
|
setup(
|
|
4
4
|
name="Encryptors",
|
|
5
|
-
version="2.
|
|
5
|
+
version="2.68",
|
|
6
6
|
author="OSDental LLC",
|
|
7
7
|
author_email="support@osdental.ai",
|
|
8
8
|
description="End-to-end algorithm library",
|
|
@@ -4,7 +4,9 @@ from typing import Callable
|
|
|
4
4
|
from graphql import GraphQLResolveInfo
|
|
5
5
|
from Osdental.Models.Response import Response
|
|
6
6
|
from Osdental.Models.Graphql import BaseGraphQLContext
|
|
7
|
-
from Osdental.Models.TokenClaims import
|
|
7
|
+
from Osdental.Models.TokenClaims import (
|
|
8
|
+
UserTokenClaims, AccessTokenClaims
|
|
9
|
+
)
|
|
8
10
|
from Osdental.Models.Token import AuthToken
|
|
9
11
|
from Osdental.Enums.Profile import Profile
|
|
10
12
|
from Osdental.Exception.ControlledException import (
|
|
@@ -38,28 +40,27 @@ def resolver(public: bool = False, action=None):
|
|
|
38
40
|
headers = request.headers
|
|
39
41
|
settings = container.settings
|
|
40
42
|
|
|
41
|
-
|
|
43
|
+
access_token = request.get("Accesstoken")
|
|
44
|
+
token: type[AuthToken] | type[AccessTokenClaims]
|
|
42
45
|
aes_key = None
|
|
43
46
|
claims: UserTokenClaims | AccessTokenClaims
|
|
44
47
|
|
|
45
48
|
# ── 1. AUTENTICACIÓN ──────────────────────────────
|
|
46
49
|
token_service: IAuthTokenService = container.auth_token_service
|
|
47
50
|
if not public:
|
|
48
|
-
|
|
49
51
|
user_token = extract_bearer_token(headers)
|
|
50
52
|
claims = await token_service.validate_internal_access_token(
|
|
51
53
|
user_token
|
|
52
54
|
)
|
|
53
55
|
aes_key = claims.aes_key_auth
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
access_token = request.get("Accesstoken")
|
|
57
|
+
elif public and access_token:
|
|
58
58
|
claims = await token_service.validate_external_access_token(
|
|
59
59
|
access_token
|
|
60
60
|
)
|
|
61
61
|
aes_key = claims.aes_key
|
|
62
|
-
context.access_token =
|
|
62
|
+
context.access_token = access_token
|
|
63
|
+
context.token = claims
|
|
63
64
|
|
|
64
65
|
# ── 2. DECRYPT DEL PAYLOAD ────────────────────────
|
|
65
66
|
body = await request.json()
|
|
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
|
|
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
|