Hello community, here is the log from the commit of package python-google-auth for openSUSE:Factory checked in at 2020-09-25 16:21:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-google-auth (Old) and /work/SRC/openSUSE:Factory/.python-google-auth.new.4249 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-auth" Fri Sep 25 16:21:37 2020 rev:13 rq:836319 version:1.21.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-google-auth/python-google-auth.changes 2020-09-15 16:15:35.961873888 +0200 +++ /work/SRC/openSUSE:Factory/.python-google-auth.new.4249/python-google-auth.changes 2020-09-25 16:21:58.651382649 +0200 @@ -1,0 +2,6 @@ +Wed Sep 23 13:05:40 UTC 2020 - Dirk Mueller <[email protected]> + +- update to 1.21.2: + * migrate signBlob to iamcredentials.googleapis.com + +------------------------------------------------------------------- Old: ---- google-auth-1.21.1.tar.gz New: ---- google-auth-1.21.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-google-auth.spec ++++++ --- /var/tmp/diff_new_pack.K6Y6Sm/_old 2020-09-25 16:21:59.199383134 +0200 +++ /var/tmp/diff_new_pack.K6Y6Sm/_new 2020-09-25 16:21:59.203383138 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-google-auth -Version: 1.21.1 +Version: 1.21.2 Release: 0 Summary: Google Authentication Library License: Apache-2.0 ++++++ google-auth-1.21.1.tar.gz -> google-auth-1.21.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-auth-1.21.1/PKG-INFO new/google-auth-1.21.2/PKG-INFO --- old/google-auth-1.21.1/PKG-INFO 2020-09-03 19:31:47.022814000 +0200 +++ new/google-auth-1.21.2/PKG-INFO 2020-09-16 02:50:16.453158000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: google-auth -Version: 1.21.1 +Version: 1.21.2 Summary: Google Authentication Library Home-page: https://github.com/googleapis/google-auth-library-python Author: Google Cloud Platform diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-auth-1.21.1/google/auth/iam.py new/google-auth-1.21.2/google/auth/iam.py --- old/google-auth-1.21.1/google/auth/iam.py 2020-09-03 19:30:17.000000000 +0200 +++ new/google-auth-1.21.2/google/auth/iam.py 2020-09-16 02:48:45.000000000 +0200 @@ -28,7 +28,7 @@ from google.auth import crypt from google.auth import exceptions -_IAM_API_ROOT_URI = "https://iam.googleapis.com/v1" +_IAM_API_ROOT_URI = "https://iamcredentials.googleapis.com/v1" _SIGN_BLOB_URI = _IAM_API_ROOT_URI + "/projects/-/serviceAccounts/{}:signBlob?alt=json" @@ -71,7 +71,7 @@ url = _SIGN_BLOB_URI.format(self._service_account_email) headers = {"Content-Type": "application/json"} body = json.dumps( - {"bytesToSign": base64.b64encode(message).decode("utf-8")} + {"payload": base64.b64encode(message).decode("utf-8")} ).encode("utf-8") self._credentials.before_request(self._request, method, url, headers) @@ -97,4 +97,4 @@ @_helpers.copy_docstring(crypt.Signer) def sign(self, message): response = self._make_signing_request(message) - return base64.b64decode(response["signature"]) + return base64.b64decode(response["signedBlob"]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-auth-1.21.1/google_auth.egg-info/PKG-INFO new/google-auth-1.21.2/google_auth.egg-info/PKG-INFO --- old/google-auth-1.21.1/google_auth.egg-info/PKG-INFO 2020-09-03 19:31:46.000000000 +0200 +++ new/google-auth-1.21.2/google_auth.egg-info/PKG-INFO 2020-09-16 02:50:16.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: google-auth -Version: 1.21.1 +Version: 1.21.2 Summary: Google Authentication Library Home-page: https://github.com/googleapis/google-auth-library-python Author: Google Cloud Platform diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-auth-1.21.1/setup.py new/google-auth-1.21.2/setup.py --- old/google-auth-1.21.1/setup.py 2020-09-03 19:30:17.000000000 +0200 +++ new/google-auth-1.21.2/setup.py 2020-09-16 02:48:45.000000000 +0200 @@ -33,7 +33,7 @@ with io.open("README.rst", "r") as fh: long_description = fh.read() -version = "1.21.1" +version = "1.21.2" setup( name="google-auth", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-auth-1.21.1/tests/compute_engine/test_credentials.py new/google-auth-1.21.2/tests/compute_engine/test_credentials.py --- old/google-auth-1.21.1/tests/compute_engine/test_credentials.py 2020-09-03 19:30:17.000000000 +0200 +++ new/google-auth-1.21.2/tests/compute_engine/test_credentials.py 2020-09-16 02:48:45.000000000 +0200 @@ -363,11 +363,11 @@ signature = base64.b64encode(b"some-signature").decode("utf-8") responses.add( responses.POST, - "https://iam.googleapis.com/v1/projects/-/serviceAccounts/" - "[email protected]:signBlob?alt=json", + "https://iamcredentials.googleapis.com/v1/projects/-/" + "serviceAccounts/[email protected]:signBlob?alt=json", status=200, content_type="application/json", - json={"keyId": "some-key-id", "signature": signature}, + json={"keyId": "some-key-id", "signedBlob": signature}, ) id_token = "{}.{}.{}".format( @@ -477,11 +477,11 @@ signature = base64.b64encode(b"some-signature").decode("utf-8") responses.add( responses.POST, - "https://iam.googleapis.com/v1/projects/-/serviceAccounts/" - "[email protected]:signBlob?alt=json", + "https://iamcredentials.googleapis.com/v1/projects/-/" + "serviceAccounts/[email protected]:signBlob?alt=json", status=200, content_type="application/json", - json={"keyId": "some-key-id", "signature": signature}, + json={"keyId": "some-key-id", "signedBlob": signature}, ) id_token = "{}.{}.{}".format( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-auth-1.21.1/tests/test_iam.py new/google-auth-1.21.2/tests/test_iam.py --- old/google-auth-1.21.1/tests/test_iam.py 2020-09-03 19:30:17.000000000 +0200 +++ new/google-auth-1.21.2/tests/test_iam.py 2020-09-16 02:48:45.000000000 +0200 @@ -81,7 +81,7 @@ def test_sign_bytes(self): signature = b"DEADBEEF" encoded_signature = base64.b64encode(signature).decode("utf-8") - request = make_request(http_client.OK, data={"signature": encoded_signature}) + request = make_request(http_client.OK, data={"signedBlob": encoded_signature}) credentials = make_credentials() signer = iam.Signer(request, credentials, mock.sentinel.service_account_email)
