maleo-foundation 0.2.40__py3-none-any.whl → 0.2.42__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.
@@ -46,7 +46,10 @@ class Backend(AuthenticationBackend):
46
46
  if decode_token_result.success:
47
47
  type = BaseEnums.TokenType.ACCESS
48
48
  payload = decode_token_result.data
49
- token = Token(type, payload)
49
+ token = Token(
50
+ type=type,
51
+ payload=payload
52
+ )
50
53
  return (
51
54
  Credentials(
52
55
  token=token,
@@ -73,7 +76,10 @@ class Backend(AuthenticationBackend):
73
76
  if decode_token_result.success:
74
77
  type = BaseEnums.TokenType.ACCESS
75
78
  payload = decode_token_result.data
76
- token = Token(type, payload)
79
+ token = Token(
80
+ type=type,
81
+ payload=payload
82
+ )
77
83
  return (
78
84
  Credentials(
79
85
  token=token,
@@ -8,9 +8,9 @@ from maleo_foundation.models.schemas.token import MaleoFoundationTokenSchemas
8
8
  class MaleoFoundationTokenGeneralTransfers:
9
9
  class BasePayload(BaseModel):
10
10
  iss:BaseTypes.OptionalString = Field(None, description="Token's issuer")
11
- sub:BaseTypes.OptionalString = Field(None, description="Token's subject")
11
+ sub:str = Field(..., description="Token's subject")
12
12
  sr:str = Field(..., description="System role")
13
- u_i:str = Field(..., description="user's id")
13
+ u_i:int = Field(..., description="user's id")
14
14
  u_uu:UUID = Field(..., description="user's uuid")
15
15
  u_u:str = Field(..., description="user's username")
16
16
  u_e:str = Field(..., description="user's email")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.2.40
3
+ Version: 0.2.42
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -46,7 +46,7 @@ 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=yfM9e0YJqwFrLNkUk8eIJVJ-eyRY6u4c1yrWUmVMJuc,4678
49
+ maleo_foundation/middlewares/authentication.py,sha256=P75FrLlbq5kDV9uMwXAwdAFM7DNo1k7WX6LM9dHNrcA,4820
50
50
  maleo_foundation/middlewares/base.py,sha256=8_ENtyB2iKejCOQofESzlAaq_zxDWtHNaq3f10dA020,14554
51
51
  maleo_foundation/middlewares/cors.py,sha256=9uvBvY2N6Vxa9RP_YtESxcWo6Doi6uS0lzAG9iLY7Uc,2288
52
52
  maleo_foundation/models/__init__.py,sha256=AaKehO7c1HyKhoTGRmNHDddSeBXkW-_YNrpOGBu8Ms8,246
@@ -65,7 +65,7 @@ maleo_foundation/models/transfers/__init__.py,sha256=oJLJ3Geeme6vBw7R2Dhvdvg4ziV
65
65
  maleo_foundation/models/transfers/general/__init__.py,sha256=UPIE9l9XXCb6nWzaV3atMgbbCeBeRzsvFyROJuH2d2w,168
66
66
  maleo_foundation/models/transfers/general/key.py,sha256=tLKkXbwNu7Oc1MdKa8-Y7TlBAIk54h_02AmL5Yg2PrQ,751
67
67
  maleo_foundation/models/transfers/general/signature.py,sha256=J9xQy2HjpCQOnES7RJqsUnDgjFPuakQ1mxyfdTdstSE,297
68
- maleo_foundation/models/transfers/general/token.py,sha256=_Uxvo5VE0uP688kW5_aukV_wnwEDhYG-wfhMuElyhOE,2917
68
+ maleo_foundation/models/transfers/general/token.py,sha256=O_U6dQS7oMScJzqufl6Pe21pTxMsYhOzKH8aFLxjblQ,2895
69
69
  maleo_foundation/models/transfers/parameters/__init__.py,sha256=oKW4RPIEISISRjsJzD8lsCGY1HhZRTzshPpWHcJu86k,353
70
70
  maleo_foundation/models/transfers/parameters/client.py,sha256=3X1iCThKr72_vds4gdldB0YxTlXoLTF1rGbsXyjyBpg,4051
71
71
  maleo_foundation/models/transfers/parameters/general.py,sha256=WoekZJCIoAllhXdRIJkNRdNq0QEIn0bteiHJLtzkCxU,579
@@ -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.40.dist-info/METADATA,sha256=pz64jixUYTs4Rd6Av7_ToszZYPEfglgJw9lXXbOzkLk,3598
121
- maleo_foundation-0.2.40.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
122
- maleo_foundation-0.2.40.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
123
- maleo_foundation-0.2.40.dist-info/RECORD,,
120
+ maleo_foundation-0.2.42.dist-info/METADATA,sha256=E0lF0ln1J-CsuDUMkgrx7nGgYUsaWG5iNiueE8sN8eo,3598
121
+ maleo_foundation-0.2.42.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
122
+ maleo_foundation-0.2.42.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
123
+ maleo_foundation-0.2.42.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.7.1)
2
+ Generator: setuptools (80.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5