making the verisign urls more generic

This commit is contained in:
kevgliss 2015-09-11 08:27:34 -07:00
parent bf957d2509
commit 7f119e95e1
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ class VerisignIssuerPlugin(IssuerPlugin):
:param issuer_options: :param issuer_options:
:return: :raise Exception: :return: :raise Exception:
""" """
url = current_app.config.get("VERISIGN_URL") + '/enroll' url = current_app.config.get("VERISIGN_URL") + '/rest/services/enroll'
data = process_options(issuer_options) data = process_options(issuer_options)
data['csr'] = csr data['csr'] = csr
@ -177,6 +177,6 @@ class VerisignIssuerPlugin(IssuerPlugin):
:return: :return:
""" """
url = current_app.config.get("VERISIGN_URL") + '/getTokens' url = current_app.config.get("VERISIGN_URL") + '/rest/services/getTokens'
response = self.session.post(url, headers={'content-type': 'application/x-www-form-urlencoded'}) response = self.session.post(url, headers={'content-type': 'application/x-www-form-urlencoded'})
return handle_response(response.content)['Response']['Order'] return handle_response(response.content)['Response']['Order']