maleo-foundation 0.1.96__py3-none-any.whl → 0.1.98__py3-none-any.whl
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/managers/service.py +5 -0
- maleo_foundation/models/transfers/general/token.py +2 -0
- {maleo_foundation-0.1.96.dist-info → maleo_foundation-0.1.98.dist-info}/METADATA +1 -1
- {maleo_foundation-0.1.96.dist-info → maleo_foundation-0.1.98.dist-info}/RECORD +6 -6
- {maleo_foundation-0.1.96.dist-info → maleo_foundation-0.1.98.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.1.96.dist-info → maleo_foundation-0.1.98.dist-info}/top_level.txt +0 -0
@@ -246,9 +246,14 @@ class ServiceManager:
|
|
246
246
|
def foundation(self) -> MaleoFoundationClientManager:
|
247
247
|
return self._foundation
|
248
248
|
|
249
|
+
async def generate_token(self) -> str:
|
250
|
+
raise NotImplementedError()
|
251
|
+
|
249
252
|
@property
|
250
253
|
def token(self) -> str:
|
251
254
|
payload = MaleoFoundationTokenGeneralTransfers.BaseEncodePayload(
|
255
|
+
iss="https://stg-maleo.nexmedis.com",
|
256
|
+
sub=0,
|
252
257
|
sr="administrator",
|
253
258
|
u_i=0,
|
254
259
|
u_u=self._maleo_credentials.username,
|
@@ -6,6 +6,8 @@ from maleo_foundation.models.schemas.token import MaleoFoundationTokenSchemas
|
|
6
6
|
|
7
7
|
class MaleoFoundationTokenGeneralTransfers:
|
8
8
|
class BasePayload(BaseModel):
|
9
|
+
iss:str = Field(..., description="Token's issuer")
|
10
|
+
sub:int = Field(..., description="Token's subject")
|
9
11
|
sr:str = Field(..., description="System role")
|
10
12
|
u_i:int = Field(..., description="user's ID")
|
11
13
|
u_u:str = Field(..., description="user's username")
|
@@ -32,7 +32,7 @@ maleo_foundation/expanded_types/encryption/rsa.py,sha256=MuhB_DGrjnsl4t96W4pKuCt
|
|
32
32
|
maleo_foundation/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
33
|
maleo_foundation/managers/db.py,sha256=Pn5EZ-c1Hy6-BihN7KokHJWmBIt3Ty96fZ0zF-srtF4,5208
|
34
34
|
maleo_foundation/managers/middleware.py,sha256=ODIQU1Hpu-Xempjjo_VRbVtxiD5oi74mNuoWuDawRh0,4250
|
35
|
-
maleo_foundation/managers/service.py,sha256=
|
35
|
+
maleo_foundation/managers/service.py,sha256=VmZ0CTcp3lzCw_sk099mforNEajP17zBtpI5OyJ62dU,15870
|
36
36
|
maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
37
|
maleo_foundation/managers/client/base.py,sha256=5z9l2GN4QASF0-Lft8o5QQ3SRPXqeNZNT1S1CgaE764,4384
|
38
38
|
maleo_foundation/managers/client/maleo.py,sha256=iCM47TLL-RSQ2FkTmHVPdsb2JCd1LebMx6OJvIr4vCQ,2035
|
@@ -59,7 +59,7 @@ maleo_foundation/models/transfers/__init__.py,sha256=oJLJ3Geeme6vBw7R2Dhvdvg4ziV
|
|
59
59
|
maleo_foundation/models/transfers/general/__init__.py,sha256=UPIE9l9XXCb6nWzaV3atMgbbCeBeRzsvFyROJuH2d2w,168
|
60
60
|
maleo_foundation/models/transfers/general/key.py,sha256=tLKkXbwNu7Oc1MdKa8-Y7TlBAIk54h_02AmL5Yg2PrQ,751
|
61
61
|
maleo_foundation/models/transfers/general/signature.py,sha256=J9xQy2HjpCQOnES7RJqsUnDgjFPuakQ1mxyfdTdstSE,297
|
62
|
-
maleo_foundation/models/transfers/general/token.py,sha256=
|
62
|
+
maleo_foundation/models/transfers/general/token.py,sha256=uRqagS0Ic_Gk_nYpxehHdd_6jQPcctcCH3OKJHcyu44,2707
|
63
63
|
maleo_foundation/models/transfers/parameters/__init__.py,sha256=oKW4RPIEISISRjsJzD8lsCGY1HhZRTzshPpWHcJu86k,353
|
64
64
|
maleo_foundation/models/transfers/parameters/client.py,sha256=tn_Hwa-k-Utp5rODe7GylqZB8djIKKupgkUFscYCyLc,4059
|
65
65
|
maleo_foundation/models/transfers/parameters/general.py,sha256=WoekZJCIoAllhXdRIJkNRdNq0QEIn0bteiHJLtzkCxU,579
|
@@ -107,7 +107,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=qopTKvcMVoTFwyRijeg
|
|
107
107
|
maleo_foundation/utils/loaders/credential/google.py,sha256=deksZXT5wPhEsSMHbZ3x05WHXxCjLDt76Ns-1Tmhp7g,948
|
108
108
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=hVygcC2ImHc_aVrSrOmyedR8tMUZokWUKCKOSh5ctbo,106
|
109
109
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
|
110
|
-
maleo_foundation-0.1.
|
111
|
-
maleo_foundation-0.1.
|
112
|
-
maleo_foundation-0.1.
|
113
|
-
maleo_foundation-0.1.
|
110
|
+
maleo_foundation-0.1.98.dist-info/METADATA,sha256=ed9wlzcG59aB0RY-ZODIPHVNXF8ll-wgd9rfX3BcOtM,3419
|
111
|
+
maleo_foundation-0.1.98.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
112
|
+
maleo_foundation-0.1.98.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
113
|
+
maleo_foundation-0.1.98.dist-info/RECORD,,
|
File without changes
|
File without changes
|