From 77c213664de7bf77362fd5f42f4ad60c3109b5a8 Mon Sep 17 00:00:00 2001 From: Sebastian Brannstrom Date: Sun, 27 Jun 2021 10:10:43 -0700 Subject: [PATCH 1/2] uppgradera api-version --- bankid/jsonclient.py | 4 ++-- tests/test_jsonclient.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bankid/jsonclient.py b/bankid/jsonclient.py index eec9b75..dc7e6e3 100644 --- a/bankid/jsonclient.py +++ b/bankid/jsonclient.py @@ -59,12 +59,12 @@ def __init__(self, certificates, test_server=False, request_timeout=None): self._request_timeout = request_timeout if test_server: - self.api_url = "https://appapi2.test.bankid.com/rp/v5/" + self.api_url = "https://appapi2.test.bankid.com/rp/v5.1/" self.verify_cert = resource_filename( "bankid.certs", "appapi2.test.bankid.com.pem" ) else: - self.api_url = "https://appapi2.bankid.com/rp/v5/" + self.api_url = "https://appapi2.bankid.com/rp/v5.1/" self.verify_cert = resource_filename( "bankid.certs", "appapi2.bankid.com.pem" ) diff --git a/tests/test_jsonclient.py b/tests/test_jsonclient.py index 258e3f9..1ba85ab 100644 --- a/tests/test_jsonclient.py +++ b/tests/test_jsonclient.py @@ -155,5 +155,5 @@ def test_cancel_with_invalid_uuid(cert_and_key): ) def test_correct_prod_server_urls(cert_and_key, test_server, endpoint): c = bankid.BankIDJSONClient(certificates=cert_and_key, test_server=test_server) - assert c.api_url == "https://{0}/rp/v5/".format(endpoint) + assert c.api_url == "https://{0}/rp/v5.1/".format(endpoint) assert "{0}.pem".format(endpoint) in c.verify_cert From 16cf8e487a2118db84da08eeba66f20ffb1ee85b Mon Sep 17 00:00:00 2001 From: Henrik Blidh Date: Thu, 8 Jul 2021 11:07:23 +0200 Subject: [PATCH 2/2] Bump version --- bankid/__version__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bankid/__version__.py b/bankid/__version__.py index 897cde7..c8abc43 100644 --- a/bankid/__version__.py +++ b/bankid/__version__.py @@ -8,5 +8,5 @@ from __future__ import print_function from __future__ import absolute_import -__version__ = "0.11.0" +__version__ = "0.12.0" version = __version__ # backwards compatibility name