Encryptors 2.32__tar.gz → 2.33__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.32 → encryptors-2.33}/PKG-INFO +1 -1
- {encryptors-2.32 → encryptors-2.33}/setup.py +1 -1
- {encryptors-2.32 → encryptors-2.33}/src/Encryptors.egg-info/PKG-INFO +1 -1
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Graphql/Extensions/AuditExtension.py +2 -1
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Graphql/_Helpers/_ExtractAuthToken.py +1 -1
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Models/_Audit.py +2 -2
- {encryptors-2.32 → encryptors-2.33}/README.md +0 -0
- {encryptors-2.32 → encryptors-2.33}/setup.cfg +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Encryptors.egg-info/SOURCES.txt +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Encryptors.egg-info/dependency_links.txt +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Encryptors.egg-info/entry_points.txt +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Encryptors.egg-info/requires.txt +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Encryptors.egg-info/top_level.txt +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Cli/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Database/BaseRepository.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Database/Connection.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Database/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Decorators/Grpc.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Decorators/Retry.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Decorators/SecureResolver.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Decorators/SqlDataNormalizer.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Decorators/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Encryptor/Aes.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Encryptor/Argon2.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Encryptor/Bcrypt.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Encryptor/Jwt.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Encryptor/Rsa.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Encryptor/Sha512.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Encryptor/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Exception/ControlledException.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Exception/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Graphql/Extensions/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Graphql/_Exceptions/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Graphql/_Helpers/_AuditHelper.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Graphql/_Helpers/_TenantPolicy.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Graphql/_Helpers/_TokenService.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Graphql/_Helpers/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Graphql/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Helpers/AuditDispatcher.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Helpers/KeyVaultService.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Helpers/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Http/APIClient.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Http/_Exceptions.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Http/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Messaging/AzureServiceBus.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Messaging/Kafka.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Messaging/RabbitMQ.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Messaging/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Models/AuditConfig.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Models/Catalog.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Models/Legacy.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Models/Response.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Models/Token.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Models/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/RedisCache/Redis.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/RedisCache/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Rest/Context/RequestContext.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Rest/Context/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Rest/Middlewares/RequestContextMiddleware.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Rest/Middlewares/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Rest/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Enums/Code.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Enums/Constant.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Enums/FileType.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Enums/GrahpqlOperation.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Enums/Message.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Enums/Profile.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Enums/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Logger.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/CaseConverter.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/CodeGenerator.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/DataNormalizer.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/DataUtils.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/DateUtils.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/FileMetaData.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/HashValidator.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/Mapper.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/PasswordGenerator.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/QueryGenerator.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/TextProcessor.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/Utils/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Shared/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Storage/AzureBlobStorage.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Storage/S3Storage.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/Storage/__init__.py +0 -0
- {encryptors-2.32 → encryptors-2.33}/src/Osdental/__init__.py +0 -0
|
@@ -4,6 +4,7 @@ from ariadne.types import Extension
|
|
|
4
4
|
from Osdental.Encryptor.Aes import AES
|
|
5
5
|
from Osdental.Graphql._Helpers._TenantPolicy import TenantPolicy
|
|
6
6
|
from Osdental.Graphql._Exceptions import AESKeyNotFound
|
|
7
|
+
from Osdental.Shared.Enums.Constant import Constant
|
|
7
8
|
|
|
8
9
|
class AuditExtension(Extension):
|
|
9
10
|
|
|
@@ -94,5 +95,5 @@ class AuditExtension(Extension):
|
|
|
94
95
|
request=self.request,
|
|
95
96
|
request_payload=self.request_payload,
|
|
96
97
|
result=context.audit_plain_response,
|
|
97
|
-
|
|
98
|
+
audit_type=Constant.MESSAGE_LOG_INTERNAL
|
|
98
99
|
)
|
|
@@ -3,7 +3,7 @@ from fastapi import Request
|
|
|
3
3
|
class ExtractAuthToken:
|
|
4
4
|
|
|
5
5
|
@staticmethod
|
|
6
|
-
|
|
6
|
+
def get_auth_token(request: Request) -> str:
|
|
7
7
|
authorization = request.headers.get("authorization")
|
|
8
8
|
if not authorization or not authorization.startswith("Bearer "):
|
|
9
9
|
raise ValueError("Missing Bearer token")
|
|
@@ -5,9 +5,9 @@ from Osdental.Models.AuditConfig import AuditConfig
|
|
|
5
5
|
|
|
6
6
|
@dataclass
|
|
7
7
|
class Audit:
|
|
8
|
-
audit_type: Literal["MESSAGE_LOG_INTERNAL", "MESSAGE_LOG_EXTERNAL"] = "MESSAGE_LOG_INTERNAL"
|
|
9
8
|
request: Request
|
|
10
9
|
audit_config: AuditConfig
|
|
11
|
-
payload: Any = {}
|
|
10
|
+
payload: Any = {}
|
|
11
|
+
audit_type: Literal["MESSAGE_LOG_INTERNAL", "MESSAGE_LOG_EXTERNAL"] = "MESSAGE_LOG_INTERNAL"
|
|
12
12
|
operation_name: Optional[str] = "Unknown"
|
|
13
13
|
full_name: Optional[str] = "Joe Doe"
|
|
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
|
{encryptors-2.32 → encryptors-2.33}/src/Osdental/Rest/Middlewares/RequestContextMiddleware.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
|