23
23
X_YOTI_SDK_VERSION ,
24
24
JSON_CONTENT_TYPE ,
25
25
)
26
+ from . import YOTI_API_VERIFY_SSL
26
27
27
28
NO_KEY_FILE_SPECIFIED_ERROR = (
28
29
"Please specify the correct private key file "
@@ -103,7 +104,7 @@ def make_request(self, http_method, endpoint, body):
103
104
104
105
url = yoti_python_sdk .YOTI_API_ENDPOINT + endpoint
105
106
headers = self .__get_request_headers (endpoint , http_method , body )
106
- response = requests .request (http_method , url , headers = headers , data = body )
107
+ response = requests .request (http_method , url , headers = headers , data = body , verify = YOTI_API_VERIFY_SSL )
107
108
return response
108
109
109
110
@property
@@ -135,7 +136,7 @@ def __make_activity_details_request(
135
136
path = self .__endpoint .get_activity_details_request_path (decrypted_token )
136
137
url = yoti_python_sdk .YOTI_API_ENDPOINT + path
137
138
headers = self .__get_request_headers (path , http_method , content )
138
- response = requests .get (url = url , headers = headers )
139
+ response = requests .get (url = url , headers = headers , verify = YOTI_API_VERIFY_SSL )
139
140
140
141
self .http_error_handler (
141
142
response , {"default" : "Unsuccessful Yoti API call: {1}" }
@@ -150,7 +151,7 @@ def __make_aml_check_request(self, http_method, aml_profile):
150
151
url = yoti_python_sdk .YOTI_API_ENDPOINT + path
151
152
headers = self .__get_request_headers (path , http_method , aml_profile_bytes )
152
153
153
- response = requests .post (url = url , headers = headers , data = aml_profile_bytes )
154
+ response = requests .post (url = url , headers = headers , data = aml_profile_bytes , verify = YOTI_API_VERIFY_SSL )
154
155
155
156
self .http_error_handler (
156
157
response , {"default" : "Unsuccessful Yoti API call: {1}" }
0 commit comments