maleo-foundation 0.3.71__py3-none-any.whl → 0.3.74__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/authentication.py +2 -48
- maleo_foundation/client/manager.py +9 -3
- maleo_foundation/constants.py +2 -0
- maleo_foundation/controller_types.py +25 -0
- maleo_foundation/enums.py +7 -1
- maleo_foundation/managers/client/base.py +37 -5
- maleo_foundation/managers/client/google/base.py +7 -3
- maleo_foundation/managers/client/google/secret.py +12 -3
- maleo_foundation/managers/client/google/storage.py +11 -2
- maleo_foundation/managers/client/google/subscription.py +40 -26
- maleo_foundation/managers/client/maleo.py +3 -5
- maleo_foundation/managers/credential.py +6 -2
- maleo_foundation/managers/middleware.py +8 -8
- maleo_foundation/managers/service.py +33 -17
- maleo_foundation/middlewares/authentication.py +3 -2
- maleo_foundation/middlewares/base.py +312 -197
- maleo_foundation/models/schemas/general.py +1 -127
- maleo_foundation/models/transfers/general/authentication.py +35 -0
- maleo_foundation/{authorization.py → models/transfers/general/authorization.py} +0 -3
- maleo_foundation/models/transfers/general/configurations/__init__.py +2 -0
- maleo_foundation/models/transfers/general/configurations/client/maleo.py +1 -1
- maleo_foundation/models/transfers/general/configurations/middleware.py +6 -7
- maleo_foundation/models/transfers/general/configurations/pubsub/subscription.py +16 -0
- maleo_foundation/models/transfers/general/configurations/service.py +2 -1
- maleo_foundation/models/transfers/general/operation.py +192 -30
- maleo_foundation/models/transfers/general/request.py +13 -19
- maleo_foundation/models/transfers/general/response.py +14 -0
- maleo_foundation/models/transfers/general/service.py +9 -0
- maleo_foundation/models/transfers/general/settings.py +1 -1
- maleo_foundation/models/transfers/general/user_agent.py +34 -0
- maleo_foundation/utils/exceptions/client.py +26 -2
- maleo_foundation/utils/exceptions/service.py +26 -2
- maleo_foundation/utils/extractor.py +49 -19
- maleo_foundation/utils/logging.py +90 -21
- maleo_foundation/utils/parser.py +7 -0
- {maleo_foundation-0.3.71.dist-info → maleo_foundation-0.3.74.dist-info}/METADATA +3 -1
- {maleo_foundation-0.3.71.dist-info → maleo_foundation-0.3.74.dist-info}/RECORD +39 -35
- maleo_foundation/utils/dependencies/__init__.py +0 -6
- maleo_foundation/utils/dependencies/auth.py +0 -17
- maleo_foundation/utils/dependencies/context.py +0 -8
- {maleo_foundation-0.3.71.dist-info → maleo_foundation-0.3.74.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.3.71.dist-info → maleo_foundation-0.3.74.dist-info}/top_level.txt +0 -0
@@ -1,13 +1,13 @@
|
|
1
1
|
maleo_foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
maleo_foundation/authentication.py,sha256=
|
3
|
-
maleo_foundation/
|
4
|
-
maleo_foundation/
|
5
|
-
maleo_foundation/enums.py,sha256=
|
2
|
+
maleo_foundation/authentication.py,sha256=JoFMNIyF1Jadk7bwlFyIZhnAYxceCU6FvngfVhuYIl4,959
|
3
|
+
maleo_foundation/constants.py,sha256=DBtHm-_XL95fOIhY-Bp0zFdYkHks9p2PHu6K0J-QSns,1597
|
4
|
+
maleo_foundation/controller_types.py,sha256=Q7kAjUenQ-7QgXdsVLLWKfvEl1_s7r_QfOoftDXT6lc,1097
|
5
|
+
maleo_foundation/enums.py,sha256=MsGZeyEzHPsRu5YDeKBueDvACDVqhQTQ27U2QjpaXJA,6446
|
6
6
|
maleo_foundation/extended_types.py,sha256=oOAYc5f89WcPt5OWEaNdeceENHiPVr4KDhdttg6bA_w,305
|
7
7
|
maleo_foundation/rest_controller_result.py,sha256=uZxBxZ5hB98q1B4hNyRigHcO0560NYfUjq8L662aOPw,2172
|
8
8
|
maleo_foundation/types.py,sha256=Tq50KOISbnsMslVGBCqlY77lRAQZa-UUFDGqqwRglow,2466
|
9
9
|
maleo_foundation/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
-
maleo_foundation/client/manager.py,sha256=
|
10
|
+
maleo_foundation/client/manager.py,sha256=BENie7uqg4iku3rGmM6vq6LOoXrYAbGqwW09irS23PE,2914
|
11
11
|
maleo_foundation/client/services/__init__.py,sha256=srDKoa3zRt-PvfHcXlFJbwagT0O3wwicL3qbMb3Odug,1104
|
12
12
|
maleo_foundation/client/services/key.py,sha256=2OzlBygNsAW9WkTxHkQNneAy5jvrzXuxHvN-E5mBkxY,7856
|
13
13
|
maleo_foundation/client/services/signature.py,sha256=c9uWHDjUsONlA9vwU_EBetsmUNc97qsHf4OfBzyi0MQ,6362
|
@@ -33,28 +33,28 @@ maleo_foundation/expanded_types/encryption/rsa.py,sha256=LJhZ6mnE4OB1eZnNTg21fv1
|
|
33
33
|
maleo_foundation/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
34
34
|
maleo_foundation/managers/cache.py,sha256=hML8vi2MXO2m2HeqB4eE6Ed4kl1iVXgEfpkB9tixs1Q,277
|
35
35
|
maleo_foundation/managers/configuration.py,sha256=JmJFvKB6xCPwb8iYpwuNMpdcHfwPJYLFgXYcWwewMj8,1740
|
36
|
-
maleo_foundation/managers/credential.py,sha256=
|
36
|
+
maleo_foundation/managers/credential.py,sha256=ZQFae0cdERVtTZ2OGUgC8W6lI1RIlm2vjsAnqf2R234,3088
|
37
37
|
maleo_foundation/managers/db.py,sha256=y0rQIg-vohhFUtck3v1LCdXov7XYjy9PFiCsVtcg8VI,6496
|
38
|
-
maleo_foundation/managers/middleware.py,sha256=
|
39
|
-
maleo_foundation/managers/service.py,sha256=
|
38
|
+
maleo_foundation/managers/middleware.py,sha256=_M3g3wvrMtoQb5BI9Wi97Z6hUk4RIXiv04-TKpTrXLQ,2335
|
39
|
+
maleo_foundation/managers/service.py,sha256=NipK18Rz6uCloa8sySiwbCZxgxbguU_yGINkgjYciiM,12807
|
40
40
|
maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
41
|
-
maleo_foundation/managers/client/base.py,sha256=
|
42
|
-
maleo_foundation/managers/client/maleo.py,sha256=
|
41
|
+
maleo_foundation/managers/client/base.py,sha256=j48JYpcTzaGJPZzQAixPVCJtAB9EqDVxx-51hVGgw2k,5631
|
42
|
+
maleo_foundation/managers/client/maleo.py,sha256=ACZC-gvc36pwrqvEmEKeBDKAOAAqoRfuCXeAa6KrGBQ,3128
|
43
43
|
maleo_foundation/managers/client/google/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
44
|
-
maleo_foundation/managers/client/google/base.py,sha256=
|
44
|
+
maleo_foundation/managers/client/google/base.py,sha256=azp4dqmKJyLCNv7uCS93kIs6jWZTbq1cU6mww6RN3FY,1741
|
45
45
|
maleo_foundation/managers/client/google/parameter.py,sha256=emBgc1qCQcnETKYvwv35EqARjdO9igD0-F-Xuxx-fyU,1410
|
46
|
-
maleo_foundation/managers/client/google/secret.py,sha256=
|
47
|
-
maleo_foundation/managers/client/google/storage.py,sha256=
|
48
|
-
maleo_foundation/managers/client/google/subscription.py,sha256=
|
49
|
-
maleo_foundation/middlewares/authentication.py,sha256=
|
50
|
-
maleo_foundation/middlewares/base.py,sha256=
|
46
|
+
maleo_foundation/managers/client/google/secret.py,sha256=fwqeVL0uyefuZrySpvP9PJ8u-0YuAxZ3Nd9nA6A4UlI,5274
|
47
|
+
maleo_foundation/managers/client/google/storage.py,sha256=k-y0LrgjVVUX4PbGLOgBUOt0BEiQKXoHH-U3KtG5Kc4,6829
|
48
|
+
maleo_foundation/managers/client/google/subscription.py,sha256=0a9T1jh0CGyLb9CyBiixdZYxmCzdg0X15VYebqYt5M4,5686
|
49
|
+
maleo_foundation/middlewares/authentication.py,sha256=blcFRorGRK_GcVWKBqFe_UBngX1lLa5DwxuxISnIx24,4238
|
50
|
+
maleo_foundation/middlewares/base.py,sha256=HdKPkGZEpmDZBcbs1Zs2yHRr3oA0-_qjbCh6bofhamA,21165
|
51
51
|
maleo_foundation/middlewares/cors.py,sha256=1QgRXOcURuEhBYMerclqbECgtAE4CFo0EhB4gJXu8Yg,2294
|
52
52
|
maleo_foundation/models/__init__.py,sha256=OlZXaeOhGXz_FppPm87jIOItnr-r179QhIcOWDOORyQ,248
|
53
53
|
maleo_foundation/models/responses.py,sha256=WNAz67ewOyWV0oHyiB_BF_-sfaoDF-FVzcwg4AulH1g,8824
|
54
54
|
maleo_foundation/models/table.py,sha256=k0-OtahF2KRmvFUL8TborT6PoIhGsyoVrPJBKGg1QbU,1855
|
55
55
|
maleo_foundation/models/schemas/__init__.py,sha256=tmjBCyG4uMRjiTbnbhIjZaR8q7zk0_J_CqnRzsSfoBQ,279
|
56
56
|
maleo_foundation/models/schemas/encryption.py,sha256=S86FGlcBhyGxxZ5ObNSHTjSDwBUlUtLOMoCAKd5wE34,687
|
57
|
-
maleo_foundation/models/schemas/general.py,sha256=
|
57
|
+
maleo_foundation/models/schemas/general.py,sha256=YFL-z7QX286FUvhW1qg9ynBqggMVi0tkXMp_I9rgBDc,4128
|
58
58
|
maleo_foundation/models/schemas/hash.py,sha256=jthDmu_VTBydffPruAIAiR8l0Xs6IrlgTptaP42zr1M,447
|
59
59
|
maleo_foundation/models/schemas/key.py,sha256=LSEDQpaCxavwp5je2O-ZNyOPtrFW_lXDywF9LK-An1w,622
|
60
60
|
maleo_foundation/models/schemas/parameter.py,sha256=OE1hg100lEa2IlGlT2Zz6PJ-OcC-6ZfDzsTOeJvvEig,3907
|
@@ -63,25 +63,31 @@ maleo_foundation/models/schemas/signature.py,sha256=h0sa91vnCaivmvlbqOd7RLiCz8qA
|
|
63
63
|
maleo_foundation/models/schemas/token.py,sha256=eh4k9rm_MoaCfGV3Nqa7yFH-PH7Ec6WY4RxHhbF4m5U,591
|
64
64
|
maleo_foundation/models/transfers/__init__.py,sha256=V5kdd8wuXqe78bQ7HG3a8vW3Rkke2wTr6mb5lC0IQJg,301
|
65
65
|
maleo_foundation/models/transfers/general/__init__.py,sha256=e7lZRjpwQ8utt1D3IkuWOVFsnCn64De0SvxdWLSezJ0,170
|
66
|
+
maleo_foundation/models/transfers/general/authentication.py,sha256=4YT-YHHrvp4B6FJjXbLTwUxHuOn0YVtRF4M1zYHdkv4,1046
|
67
|
+
maleo_foundation/models/transfers/general/authorization.py,sha256=BBE5Wblzg8CCi51HAZSGOj_hqSHhZsGOIBQ1hTPZ1Os,216
|
66
68
|
maleo_foundation/models/transfers/general/credentials.py,sha256=t6OhQb3DyGSfBpbqHsiJKzPbOVSEcuBTXqmw6f8H3UY,347
|
67
69
|
maleo_foundation/models/transfers/general/data.py,sha256=_J-Y5X2Nx8D1lpaR9ctpm54kUbxR7Vy00hO103uXtxE,1408
|
68
70
|
maleo_foundation/models/transfers/general/database.py,sha256=VQYnZa8dYrqucSQdzkaPSrzLd4SJnpU8LPytUrWErO0,1245
|
69
71
|
maleo_foundation/models/transfers/general/key.py,sha256=QV_kcxAlnrupBcGQK8tqz9FVYbivxwhgIsrmW7XDdME,845
|
70
|
-
maleo_foundation/models/transfers/general/operation.py,sha256=
|
71
|
-
maleo_foundation/models/transfers/general/request.py,sha256=
|
72
|
-
maleo_foundation/models/transfers/general/
|
72
|
+
maleo_foundation/models/transfers/general/operation.py,sha256=OFU3-qjhW_xeDb7l85mw2aA7lG1cxi3dupaOgIuuN7s,8917
|
73
|
+
maleo_foundation/models/transfers/general/request.py,sha256=1nrWZZgLti9SKTeAhWCfn-2Eob7JvlKK1_qoCh4F9rw,1685
|
74
|
+
maleo_foundation/models/transfers/general/response.py,sha256=oCkxx6g-OaycsEZMuZweJF9yOUozo-sgMKnv5mea8PA,498
|
75
|
+
maleo_foundation/models/transfers/general/service.py,sha256=u9v4e-XuFxoRYjwFQRPZRO51RpqHbIISUuqNhJR71-o,294
|
76
|
+
maleo_foundation/models/transfers/general/settings.py,sha256=LOlPVB8ns8NAIVHKVYv13jtlUbkuPHHOwyMqFes0T30,1623
|
73
77
|
maleo_foundation/models/transfers/general/signature.py,sha256=TCTIy928EeBBeFLlyQ3_NozpR9FUcWXPQKIYIwyj66k,308
|
74
78
|
maleo_foundation/models/transfers/general/token.py,sha256=aF7IXEYS4EnWtWquZexnrXcJBOl5M1lneo7yu7IiKYg,5022
|
75
|
-
maleo_foundation/models/transfers/general/
|
79
|
+
maleo_foundation/models/transfers/general/user_agent.py,sha256=wYuYIvfvzPNe7Dz2PvYas_YNTO1MZraFxSR4triwUVU,809
|
80
|
+
maleo_foundation/models/transfers/general/configurations/__init__.py,sha256=0ud_qyFLPoebb7AjgLaKrpAivGw6JKieQXImHxI82ng,1751
|
76
81
|
maleo_foundation/models/transfers/general/configurations/database.py,sha256=4j465vki3bCNGogrJLmMmF1uEXc-sUfyhwMeuaR5JyM,706
|
77
|
-
maleo_foundation/models/transfers/general/configurations/middleware.py,sha256=
|
78
|
-
maleo_foundation/models/transfers/general/configurations/service.py,sha256=
|
82
|
+
maleo_foundation/models/transfers/general/configurations/middleware.py,sha256=0gX7ILF4TV3-eai_sJI3g6yFLyNoPGr9OlNaG9mz8ow,1633
|
83
|
+
maleo_foundation/models/transfers/general/configurations/service.py,sha256=9ls5So7P50gE0T0HjlskDMooL0RO3VmQl_N0H8HwutU,365
|
79
84
|
maleo_foundation/models/transfers/general/configurations/cache/__init__.py,sha256=eCEeFFP4jN9FWFHWLadAnP1NoJH4CJQm7WRnXhmHUh0,264
|
80
85
|
maleo_foundation/models/transfers/general/configurations/cache/redis.py,sha256=SNnI7hm8giKfR2Kp5sD_fmxo4Q5fkRCdi9zMKwTKPCs,1331
|
81
86
|
maleo_foundation/models/transfers/general/configurations/client/__init__.py,sha256=1w17i9CH4bSQ40o8rwIew2F_id25XklFqI1YPowcHvQ,356
|
82
|
-
maleo_foundation/models/transfers/general/configurations/client/maleo.py,sha256=
|
87
|
+
maleo_foundation/models/transfers/general/configurations/client/maleo.py,sha256=GkfRvpgcVlSoLNHhMMvf1g42w9Xf73gD5aBIsYukYJo,2077
|
83
88
|
maleo_foundation/models/transfers/general/configurations/pubsub/__init__.py,sha256=BJqB2lxd7iFbm__3VKWPclE6ub_FMIVbhaO7yc2KzSU,505
|
84
89
|
maleo_foundation/models/transfers/general/configurations/pubsub/publisher.py,sha256=hDBkq__mbALJgiX1cOYi0V-3JitfoEOexjGAEbsJgo0,1596
|
90
|
+
maleo_foundation/models/transfers/general/configurations/pubsub/subscription.py,sha256=WZJlySm6exDw84OKxsCY0SCDCepBsBb84Ydy0jL9GKg,633
|
85
91
|
maleo_foundation/models/transfers/parameters/__init__.py,sha256=HiV7hPn8rUaN7XeOwC_VugYQ4QQO7kbZ0fsp11GDznQ,355
|
86
92
|
maleo_foundation/models/transfers/parameters/client.py,sha256=2V1XvhSmIDDZL7MFVpD_dR5jWIoydQnFW67n9z6rRMA,4041
|
87
93
|
maleo_foundation/models/transfers/parameters/general.py,sha256=NUFsrrfByN9OX9QLYc2Bn0LpNPoxrKBuZae-IVhOiyo,791
|
@@ -116,19 +122,17 @@ maleo_foundation/utils/__init__.py,sha256=advf6IhKQOz64jbI0f9gyabHWa7ti8wTYDkYLD
|
|
116
122
|
maleo_foundation/utils/cache.py,sha256=PWNef00iA2m0g3boR7JbzrJQIRITf5nKgdCmMs3s6ag,1159
|
117
123
|
maleo_foundation/utils/client.py,sha256=KDkIEqGX6Tw07Z5HHW4HrG8IWUVkErlqnVijXnpWZGQ,2940
|
118
124
|
maleo_foundation/utils/controller.py,sha256=S69NluxjGCB_toAu3JDLi_izE0-x2ARE_7YK3V8T1Q0,7413
|
119
|
-
maleo_foundation/utils/extractor.py,sha256=
|
120
|
-
maleo_foundation/utils/logging.py,sha256=
|
125
|
+
maleo_foundation/utils/extractor.py,sha256=gCJf-X-mlpnONcXe7DfLqfbJVjeHiHBMi-G0u9U5iSw,3527
|
126
|
+
maleo_foundation/utils/logging.py,sha256=IZufHwMfIujwfPhSe4ad3ld5yFNLqWbbem0PRe2OWSE,11774
|
121
127
|
maleo_foundation/utils/merger.py,sha256=UGiuH0EUQJu0WlS1xdPUuvnsNknd3k0DODjdiOTiBdI,704
|
128
|
+
maleo_foundation/utils/parser.py,sha256=xkIMpG4z2pgAK7OsWmdlpSw63yjV9v7nNKY0nqEJouU,300
|
122
129
|
maleo_foundation/utils/query.py,sha256=mAoXadZuWx_ic6Z4VQ9K4GZxYgSNzpNS94W6xxqeFyg,8312
|
123
130
|
maleo_foundation/utils/repository.py,sha256=fZqmApZUG9KqwrfURvyAIw_-7Y9EsLngoAoNcjJphtQ,2951
|
124
131
|
maleo_foundation/utils/searcher.py,sha256=rcHa0pPZvLEk2MgI4qeGW-K6vlUy2eWTnwWzzT8yrKA,528
|
125
|
-
maleo_foundation/utils/dependencies/__init__.py,sha256=jJOo4uCTPiEvpgecsl4JEhKzuV85KaNxOd9PiRl-2ic,124
|
126
|
-
maleo_foundation/utils/dependencies/auth.py,sha256=3Z0b-Xi5PAKRKlbv-ZIT46YrQFkjiS7NhSDWZTOWm8I,650
|
127
|
-
maleo_foundation/utils/dependencies/context.py,sha256=pw18j6LZgHdJQVKCvRH71mFZ_li8jP_wIgbtBMLXpxQ,271
|
128
132
|
maleo_foundation/utils/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
129
|
-
maleo_foundation/utils/exceptions/client.py,sha256=
|
133
|
+
maleo_foundation/utils/exceptions/client.py,sha256=6tLm3ihawgxHVtctBSnH0NslJMgepY80vPdhPWQD-hA,10814
|
130
134
|
maleo_foundation/utils/exceptions/request.py,sha256=p6rfya7HuqlfrvxFZm3KgTf95mPkQ6QCBlLyhiRfGtw,1600
|
131
|
-
maleo_foundation/utils/exceptions/service.py,sha256=
|
135
|
+
maleo_foundation/utils/exceptions/service.py,sha256=aAzIvp2afsXSsTWHULxTw7KMrCyXwmJU2rn0eb9A2NU,10847
|
132
136
|
maleo_foundation/utils/formatter/__init__.py,sha256=qzn45FGoZeArJYmgFpdzKe-jp3yREGSrPfc4a-iZHe4,80
|
133
137
|
maleo_foundation/utils/formatter/case.py,sha256=VsDTkKVZgN5b5O4Q6hkEzIDTf635FHS2BF_eY-NNngQ,1359
|
134
138
|
maleo_foundation/utils/loaders/__init__.py,sha256=aBVS-zCBdb9t4Keh5cFJ4Vqv5lFHthJoHTaGPVjnvnU,284
|
@@ -138,7 +142,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=g-cAxkTE2EtHaG8Tv52
|
|
138
142
|
maleo_foundation/utils/loaders/credential/google.py,sha256=GCJl-bsKSSxoE_ERAkIzRrRNIbIEeqYOhHwzFuBr0mk,6576
|
139
143
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=RfqIbUxkdlx1xrbzJZPD_JHiRFNFLRuQs8JoUPCGCv4,108
|
140
144
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=UXcP0rr4QVacTsHLNQuU05wcow5CHWz-JW-zsVxlbPs,4121
|
141
|
-
maleo_foundation-0.3.
|
142
|
-
maleo_foundation-0.3.
|
143
|
-
maleo_foundation-0.3.
|
144
|
-
maleo_foundation-0.3.
|
145
|
+
maleo_foundation-0.3.74.dist-info/METADATA,sha256=tz_KKWXLtaGTpCcyfN3R-E-N1LEy7CTY-yxjGVOr-BE,4230
|
146
|
+
maleo_foundation-0.3.74.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
147
|
+
maleo_foundation-0.3.74.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
148
|
+
maleo_foundation-0.3.74.dist-info/RECORD,,
|
@@ -1,17 +0,0 @@
|
|
1
|
-
from fastapi import Security
|
2
|
-
from fastapi.requests import Request
|
3
|
-
from fastapi.security import HTTPAuthorizationCredentials
|
4
|
-
from maleo_foundation.authentication import Authentication
|
5
|
-
from maleo_foundation.authorization import TOKEN_SCHEME, Authorization
|
6
|
-
|
7
|
-
|
8
|
-
class AuthDependencies:
|
9
|
-
@staticmethod
|
10
|
-
def authentication(request: Request) -> Authentication:
|
11
|
-
return Authentication(credentials=request.auth, user=request.user)
|
12
|
-
|
13
|
-
@staticmethod
|
14
|
-
def authorization(
|
15
|
-
token: HTTPAuthorizationCredentials = Security(TOKEN_SCHEME),
|
16
|
-
) -> Authorization:
|
17
|
-
return Authorization(scheme=token.scheme, credentials=token.credentials)
|
@@ -1,8 +0,0 @@
|
|
1
|
-
from fastapi.requests import Request
|
2
|
-
from maleo_foundation.models.transfers.general.request import RequestContext
|
3
|
-
|
4
|
-
|
5
|
-
class ContextDependencies:
|
6
|
-
@staticmethod
|
7
|
-
def get_request_context(request: Request) -> RequestContext:
|
8
|
-
return request.state.request_context
|
File without changes
|
File without changes
|