eclinical-requester 1.0.15__py3-none-any.whl → 1.0.17__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.
- api_requester/__init__.py +1 -1
- api_requester/core/call_api.py +6 -0
- api_requester/docs/application.yaml +1 -0
- api_requester/http/authorize.py +1 -0
- {eclinical_requester-1.0.15.dist-info → eclinical_requester-1.0.17.dist-info}/METADATA +1 -1
- {eclinical_requester-1.0.15.dist-info → eclinical_requester-1.0.17.dist-info}/RECORD +9 -9
- {eclinical_requester-1.0.15.dist-info → eclinical_requester-1.0.17.dist-info}/WHEEL +0 -0
- {eclinical_requester-1.0.15.dist-info → eclinical_requester-1.0.17.dist-info}/licenses/LICENSE +0 -0
- {eclinical_requester-1.0.15.dist-info → eclinical_requester-1.0.17.dist-info}/top_level.txt +0 -0
api_requester/__init__.py
CHANGED
api_requester/core/call_api.py
CHANGED
@@ -62,6 +62,12 @@ class ApiRequester(BizBase):
|
|
62
62
|
url = AppUrl(self.user.app, self.user.test_env).which_url(self.user.app)(api)
|
63
63
|
else:
|
64
64
|
url = AppUrl(self.user.app, self.user.test_env).external_url(api)
|
65
|
+
if self.user.test_env == "us.prod":
|
66
|
+
if method.lower() != "get":
|
67
|
+
raise Exception(
|
68
|
+
f"Request method '{method.upper()}' is not allowed in the 'us.prod' environment. "
|
69
|
+
"Only GET requests are permitted."
|
70
|
+
)
|
65
71
|
return request(method, url, headers=self.headers, **kwargs)
|
66
72
|
|
67
73
|
def user_replacer(self):
|
api_requester/http/authorize.py
CHANGED
@@ -42,6 +42,7 @@ class Authorize(BizBase, AdminAuthService, AdminUserOnBoardApplicationServiceImp
|
|
42
42
|
self.headers = SampleHeaders().add_authorization(self.user.token).to_h()
|
43
43
|
self.time_mills = time.time()
|
44
44
|
self.user.app = self.login_app
|
45
|
+
self.get_current_system_env()
|
45
46
|
return
|
46
47
|
if self.login_app == AppEnum.CODING.code:
|
47
48
|
login_app_tip = "{0}({1})".format(self.login_app,
|
@@ -1,6 +1,6 @@
|
|
1
|
-
api_requester/__init__.py,sha256=
|
1
|
+
api_requester/__init__.py,sha256=B1TzOxSfBYnxEOYd0J5PiyZM1DzrIC-yyWUKrNYqRiI,176
|
2
2
|
api_requester/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
api_requester/core/call_api.py,sha256=
|
3
|
+
api_requester/core/call_api.py,sha256=do8wsRAkwTC6Xw9ZuPE6iATNSrzpIIz9mLBF5NsgDSY,3102
|
4
4
|
api_requester/core/admin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
api_requester/core/admin/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
api_requester/core/admin/api/auth_api.py,sha256=dKKOuEnXIKgzhUfaNfSzNm24LREUcvPZ28xxTZisY6w,861
|
@@ -33,14 +33,14 @@ api_requester/core/common/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
33
33
|
api_requester/core/common/service/ecoa_auth_service.py,sha256=MyBqf76IcD0Aj7sjN1DmdJccoSeCjRONxrySuR3nW30,1459
|
34
34
|
api_requester/core/common/service/subject_auth_service.py,sha256=jSoCH9m4f_UKUcTWbXb1J0I2WcSCgSiEA_EnCqglJog,867
|
35
35
|
api_requester/core/common/service/system_env_service.py,sha256=SIKQCG2tIf1s4dUsSiFvOMAgai6JQ-xRP5HJ8MKF3Ts,787
|
36
|
-
api_requester/docs/application.yaml,sha256=
|
36
|
+
api_requester/docs/application.yaml,sha256=9wLlDZY-xzOweUJ3WfA0PqNtB41V--kjp4l3Scgd6hc,1199
|
37
37
|
api_requester/dto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
38
|
api_requester/dto/base_dto.py,sha256=nyBGidUblKE6MSK-yvcVSlYDyqPbIEdXiTOvymcFZp0,6904
|
39
39
|
api_requester/dto/biz_base.py,sha256=4lzf6FoXCNBr0OlxbFryf-7v16wfP3Hv6c7WUh-DgNs,874
|
40
40
|
api_requester/dto/user.py,sha256=M27az447jYRSMJScDzUrP4tUduI22SpGCMe-oZlDTN8,1446
|
41
41
|
api_requester/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
42
42
|
api_requester/http/app_url.py,sha256=jTGwxPcu_yts4WZbE9wDl6HqGOB48BdEIGw4Otmo1F0,939
|
43
|
-
api_requester/http/authorize.py,sha256=
|
43
|
+
api_requester/http/authorize.py,sha256=SVYT_iat85RfgR4VJ9dmVC3TnWH-QTxIgDmpz8PAp1s,7873
|
44
44
|
api_requester/http/authorize_ecoa.py,sha256=7KPjkCLp4xjMFybT66GSqhIeelGtn2sP-DokydBuQiI,3940
|
45
45
|
api_requester/http/authorize_ediary.py,sha256=zWNR-4Z8jg0ytYmoZJ9upFQIjKMCsv49Qp8gj846mBc,2935
|
46
46
|
api_requester/http/eclinical_requests.py,sha256=JUQ7EPeAvspz-J6GvpoVM2kA4hyGN4AP166hyQlmeFM,9640
|
@@ -59,8 +59,8 @@ api_requester/utils/placeholder_replacer.py,sha256=umNGeA1KCQ6Ewzsv1xEehLmHtKkgv
|
|
59
59
|
api_requester/utils/read_file.py,sha256=M4oskAPDzefeVXfhhNmLe4GOjBKNi9WJLF4k474CTlo,2304
|
60
60
|
api_requester/utils/rsa.py,sha256=dr2m3a2M_LYu1Us97EEiMcjZAkpn1yWKIOjyYYubZeg,1202
|
61
61
|
api_requester/utils/time_utils.py,sha256=u1hHO0POBhdXaTQ7VGY_2YjaYxwlrWXGb5phP8iLfOY,579
|
62
|
-
eclinical_requester-1.0.
|
63
|
-
eclinical_requester-1.0.
|
64
|
-
eclinical_requester-1.0.
|
65
|
-
eclinical_requester-1.0.
|
66
|
-
eclinical_requester-1.0.
|
62
|
+
eclinical_requester-1.0.17.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
|
63
|
+
eclinical_requester-1.0.17.dist-info/METADATA,sha256=Mk8PeBKz4arTXZOMFMilW4qJlFZIq9Zi-ndq2nbyKIw,719
|
64
|
+
eclinical_requester-1.0.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
65
|
+
eclinical_requester-1.0.17.dist-info/top_level.txt,sha256=nM6wDThrKcbLCcBGrTBPPtstqV97VyITV-YiKLoUG0U,14
|
66
|
+
eclinical_requester-1.0.17.dist-info/RECORD,,
|
File without changes
|
{eclinical_requester-1.0.15.dist-info → eclinical_requester-1.0.17.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|