Skip to content

Commit

Permalink
Version 0.12.0 - API version 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hbldh committed Jul 8, 2021
2 parents afd9f46 + 16cf8e4 commit 9adda11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bankid/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions bankid/jsonclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_jsonclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9adda11

Please sign in to comment.