maleo-foundation 0.1.49__tar.gz → 0.1.51__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.
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/PKG-INFO +1 -1
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/services/token.py +1 -8
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation.egg-info/PKG-INFO +1 -1
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/pyproject.toml +1 -1
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/README.md +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/authentication.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/constants.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/enums.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/client.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/general.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/query.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/service.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/token.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/extended_types.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/client/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/client/base.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/client/google/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/client/google/base.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/client/google/secret.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/client/google/storage.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/client/maleo.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/db.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/middleware.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/service.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/middlewares/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/middlewares/authentication.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/middlewares/base.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/middlewares/cors.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/responses.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/schemas/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/schemas/general.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/schemas/parameter.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/schemas/result.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/schemas/token.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/table.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/general/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/general/token.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/parameters/client.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/parameters/general.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/parameters/service.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/parameters/token.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/results/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/results/client/service.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/results/service/general.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/results/service/query.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/results/token.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/services/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/types.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/controller.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/exceptions.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/extractor.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/formatter/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/formatter/case.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/loaders/__init__.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/loaders/json.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/loaders/key.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/loaders/yaml.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/logging.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/mergers.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/query.py +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation.egg-info/SOURCES.txt +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation.egg-info/dependency_links.txt +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation.egg-info/requires.txt +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation.egg-info/top_level.txt +0 -0
- {maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/setup.cfg +0 -0
@@ -10,15 +10,8 @@ from maleo_foundation.expanded_types.token import BaseTokenResultsTypes
|
|
10
10
|
class BaseTokenService:
|
11
11
|
@staticmethod
|
12
12
|
def encode(parameters:BaseTokenParametersTransfers.Encode) -> BaseTokenResultsTypes.Encode:
|
13
|
-
#* Serialize private key
|
14
|
-
private_key_bytes = parameters.key.encode()
|
15
|
-
private_key = serialization.load_pem_private_key(
|
16
|
-
private_key_bytes,
|
17
|
-
password=parameters.password.encode() if parameters.password else None,
|
18
|
-
backend=default_backend()
|
19
|
-
)
|
20
13
|
payload = BaseTokenGeneralTransfers.EncodePayload.model_validate(parameters.payload.model_dump()).model_dump(mode="json")
|
21
|
-
token = jwt.encode(payload=payload, key=
|
14
|
+
token = jwt.encode(payload=payload, key=parameters.key.encode(), algorithm="RS256")
|
22
15
|
data = BaseTokenSchemas.Token(token=token)
|
23
16
|
return BaseTokenResultsTransfers.Encode(data=data)
|
24
17
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/__init__.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/client.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/general.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/query.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/service.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/expanded_types/token.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/client/__init__.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/client/base.py
RENAMED
File without changes
|
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/client/google/base.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/managers/client/maleo.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/middlewares/__init__.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/middlewares/authentication.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/schemas/__init__.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/schemas/general.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/schemas/parameter.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/schemas/result.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/schemas/token.py
RENAMED
File without changes
|
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/models/transfers/__init__.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
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/formatter/__init__.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/formatter/case.py
RENAMED
File without changes
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation/utils/loaders/__init__.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
|
{maleo_foundation-0.1.49 → maleo_foundation-0.1.51}/maleo_foundation.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|