maleo-foundation 0.2.44__py3-none-any.whl → 0.2.46__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/middlewares/authentication.py +1 -1
- maleo_foundation/middlewares/base.py +1 -2
- maleo_foundation/models/schemas/general.py +3 -0
- {maleo_foundation-0.2.44.dist-info → maleo_foundation-0.2.46.dist-info}/METADATA +1 -1
- {maleo_foundation-0.2.44.dist-info → maleo_foundation-0.2.46.dist-info}/RECORD +7 -7
- {maleo_foundation-0.2.44.dist-info → maleo_foundation-0.2.46.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.2.44.dist-info → maleo_foundation-0.2.46.dist-info}/top_level.txt +0 -0
@@ -74,7 +74,7 @@ class Backend(AuthenticationBackend):
|
|
74
74
|
.decode(parameters=decode_token_parameters)
|
75
75
|
)
|
76
76
|
if decode_token_result.success:
|
77
|
-
type = BaseEnums.TokenType.
|
77
|
+
type = BaseEnums.TokenType.REFRESH
|
78
78
|
payload = decode_token_result.data
|
79
79
|
token = Token(
|
80
80
|
type=type,
|
@@ -138,7 +138,6 @@ class BaseMiddleware(BaseHTTPMiddleware):
|
|
138
138
|
response.headers["X-Signature"] = sign_result.data.signature
|
139
139
|
if (authentication.user.is_authenticated
|
140
140
|
and authentication.credentials.token.type == BaseEnums.TokenType.REFRESH
|
141
|
-
and authentication.credentials.token.payload is not None
|
142
141
|
and (response.status_code >= 200 and response.status_code < 300)
|
143
142
|
):
|
144
143
|
#* Regenerate new authorization
|
@@ -238,7 +237,7 @@ class BaseMiddleware(BaseHTTPMiddleware):
|
|
238
237
|
if not authentication.user.is_authenticated:
|
239
238
|
authentication_info = "| Unauthenticated"
|
240
239
|
else:
|
241
|
-
authentication_info = f"| Username: {authentication.user.display_name} | Email:{authentication.user.identity}"
|
240
|
+
authentication_info = f"| Token type: {authentication.credentials.token.type} | Username: {authentication.user.display_name} | Email:{authentication.user.identity}"
|
242
241
|
|
243
242
|
try:
|
244
243
|
#* 1. Rate limit check
|
@@ -80,6 +80,9 @@ class BaseGeneralSchemas:
|
|
80
80
|
class Order(BaseModel):
|
81
81
|
order:BaseTypes.OptionalInteger = Field(..., description="Data's order")
|
82
82
|
|
83
|
+
class Code(BaseModel):
|
84
|
+
code:str = Field(..., description="Data's code")
|
85
|
+
|
83
86
|
class Key(BaseModel):
|
84
87
|
key:str = Field(..., description="Data's key")
|
85
88
|
|
@@ -46,15 +46,15 @@ maleo_foundation/managers/client/google/base.py,sha256=eIdd6C2BFIu4EyZ1j017VZaJn
|
|
46
46
|
maleo_foundation/managers/client/google/parameter.py,sha256=Lnj7mQgxWQpsQwbmDRK5_bF01M1QpM5PS0eZP2q17yQ,1337
|
47
47
|
maleo_foundation/managers/client/google/secret.py,sha256=Ski1CHYeA8vjSk2Oc2Pf4CfFrzT_RcA6NEZwza7gM7Y,4464
|
48
48
|
maleo_foundation/managers/client/google/storage.py,sha256=ECyEBgEvvbTDVfqXey-meGnoU4qvIRU32BxbCuzcaHU,2576
|
49
|
-
maleo_foundation/middlewares/authentication.py,sha256=
|
50
|
-
maleo_foundation/middlewares/base.py,sha256=
|
49
|
+
maleo_foundation/middlewares/authentication.py,sha256=UL6kL65SvqrzemlIDopoO9N1C05eWlYMHVR2tiRsVEA,4821
|
50
|
+
maleo_foundation/middlewares/base.py,sha256=0vHU0CJEj9s3slGE3fxCQwL0_hqXW-xvhu82WRVpkpg,14551
|
51
51
|
maleo_foundation/middlewares/cors.py,sha256=9uvBvY2N6Vxa9RP_YtESxcWo6Doi6uS0lzAG9iLY7Uc,2288
|
52
52
|
maleo_foundation/models/__init__.py,sha256=AaKehO7c1HyKhoTGRmNHDddSeBXkW-_YNrpOGBu8Ms8,246
|
53
53
|
maleo_foundation/models/responses.py,sha256=nszxzni_Q_42bzjrKvUVGeB3GSn4Ba9g-Nqj1dfdJvk,5223
|
54
54
|
maleo_foundation/models/table.py,sha256=tcOwj_Heqi6ode8rbD4eeSiixEYsAtUaUyJyqrYaMAw,1327
|
55
55
|
maleo_foundation/models/schemas/__init__.py,sha256=Xj8Ahsqyra-fmEaVcGPok5GOOsPQlKcknHYMvbjvENA,277
|
56
56
|
maleo_foundation/models/schemas/encryption.py,sha256=KYs2P57AqWpEROuqTuSuyt1Zk-jsIUKFeRWIfSwem74,658
|
57
|
-
maleo_foundation/models/schemas/general.py,sha256=
|
57
|
+
maleo_foundation/models/schemas/general.py,sha256=9Uvm7ckq0lAa9fv6S7_lore0_LLXvMCkRB2YbTr-lkM,4259
|
58
58
|
maleo_foundation/models/schemas/hash.py,sha256=db2uyCeUzvF2zDCcbiZMh1MxIOGOGezOMOx-M1ta4zI,441
|
59
59
|
maleo_foundation/models/schemas/key.py,sha256=7FZxVqTL5qRK48AXL1odrMNhAwhwtCwSkBUPsJwuBII,594
|
60
60
|
maleo_foundation/models/schemas/parameter.py,sha256=K47z2NzmTEhUiOfRiRLyRPXoQurbWsKBL7ObXAxIWRY,2100
|
@@ -117,7 +117,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=qopTKvcMVoTFwyRijeg
|
|
117
117
|
maleo_foundation/utils/loaders/credential/google.py,sha256=SKsqPuFnAiCcYLf24CxKnMybhVHpgqnq1gGSlThqjts,994
|
118
118
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=hVygcC2ImHc_aVrSrOmyedR8tMUZokWUKCKOSh5ctbo,106
|
119
119
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
|
120
|
-
maleo_foundation-0.2.
|
121
|
-
maleo_foundation-0.2.
|
122
|
-
maleo_foundation-0.2.
|
123
|
-
maleo_foundation-0.2.
|
120
|
+
maleo_foundation-0.2.46.dist-info/METADATA,sha256=T_WXO_R8TqC0bL3EGJzphpDS4u8Ht9P_gdSyqyi5BhU,3598
|
121
|
+
maleo_foundation-0.2.46.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
122
|
+
maleo_foundation-0.2.46.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
123
|
+
maleo_foundation-0.2.46.dist-info/RECORD,,
|
File without changes
|
File without changes
|