Merge pull request #23646 from edx/aehsan/prod-1395/verification_enabled_for_software_secure
Verification enabled for the software secure
This commit is contained in:
@@ -114,11 +114,12 @@ def send_request_to_ss_for_user(self, user_verification_id, copy_id_photo_from):
|
||||
log.info('=>New Verification Task Received %r', user_verification.user.username)
|
||||
try:
|
||||
headers, body = user_verification.create_request(copy_id_photo_from)
|
||||
# checkout PROD-1395 for detail why we are adding system certificate paths for verification.
|
||||
response = requests.post(
|
||||
settings.VERIFY_STUDENT["SOFTWARE_SECURE"]["API_URL"],
|
||||
headers=headers,
|
||||
data=simplejson.dumps(body, indent=2, sort_keys=True, ensure_ascii=False).encode('utf-8'),
|
||||
verify=False
|
||||
verify=settings.VERIFY_STUDENT["SOFTWARE_SECURE"]['CERT_VERIFICATION_PATH']
|
||||
)
|
||||
return {
|
||||
'response_ok': getattr(response, 'ok', False),
|
||||
|
||||
@@ -43,6 +43,7 @@ iwIDAQAB
|
||||
"AWS_ACCESS_KEY": "FAKEACCESSKEY",
|
||||
"AWS_SECRET_KEY": "FAKESECRETKEY",
|
||||
"S3_BUCKET": "fake-bucket",
|
||||
"CERT_VERIFICATION_PATH": False,
|
||||
},
|
||||
"DAYS_GOOD_FOR": 10,
|
||||
}
|
||||
|
||||
@@ -1489,6 +1489,7 @@ class TestSubmitPhotosForVerification(MockS3BotoMixin, TestVerificationBase):
|
||||
"AWS_ACCESS_KEY": "c987c7efe35c403caa821f7328febfa1",
|
||||
"AWS_SECRET_KEY": "fc595fc657c04437bb23495d8fe64881",
|
||||
"S3_BUCKET": "test.example.com",
|
||||
"CERT_VERIFICATION_PATH": False,
|
||||
},
|
||||
"DAYS_GOOD_FOR": 10,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user