summaryrefslogtreecommitdiffstats
path: root/contrib/python
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-06-19 14:20:10 +0300
committerrobot-piglet <[email protected]>2025-06-19 14:36:55 +0300
commitc36fdd80727db4fec28c1921631ae7ef42795fcf (patch)
treeb239750ce6b1370b68b82ea48b7a3e9fea248a7d /contrib/python
parent11434faf28fda9ddc192bf1453dfec7980f88357 (diff)
Intermediate changes
commit_hash:1975991ba90e35698d5e2f9693b93db46526635f
Diffstat (limited to 'contrib/python')
-rw-r--r--contrib/python/google-auth/py3/.dist-info/METADATA2
-rw-r--r--contrib/python/google-auth/py3/google/auth/compute_engine/credentials.py3
-rw-r--r--contrib/python/google-auth/py3/google/auth/transport/__init__.py1
-rw-r--r--contrib/python/google-auth/py3/google/auth/version.py2
-rw-r--r--contrib/python/google-auth/py3/tests/compute_engine/test_credentials.py4
-rw-r--r--contrib/python/google-auth/py3/ya.make2
6 files changed, 8 insertions, 6 deletions
diff --git a/contrib/python/google-auth/py3/.dist-info/METADATA b/contrib/python/google-auth/py3/.dist-info/METADATA
index b7b535632a5..45a2da42784 100644
--- a/contrib/python/google-auth/py3/.dist-info/METADATA
+++ b/contrib/python/google-auth/py3/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: google-auth
-Version: 2.40.2
+Version: 2.40.3
Summary: Google Authentication Library
Home-page: https://github.com/googleapis/google-auth-library-python
Author: Google Cloud Platform
diff --git a/contrib/python/google-auth/py3/google/auth/compute_engine/credentials.py b/contrib/python/google-auth/py3/google/auth/compute_engine/credentials.py
index f0126c0a80e..eb50d288b6a 100644
--- a/contrib/python/google-auth/py3/google/auth/compute_engine/credentials.py
+++ b/contrib/python/google-auth/py3/google/auth/compute_engine/credentials.py
@@ -124,8 +124,9 @@ class Credentials(
scopes = self._scopes if self._scopes is not None else self._default_scopes
try:
self._retrieve_info(request)
+ # Always fetch token with default service account email.
self.token, self.expiry = _metadata.get_service_account_token(
- request, service_account=self._service_account_email, scopes=scopes
+ request, service_account="default", scopes=scopes
)
except exceptions.TransportError as caught_exc:
new_exc = exceptions.RefreshError(caught_exc)
diff --git a/contrib/python/google-auth/py3/google/auth/transport/__init__.py b/contrib/python/google-auth/py3/google/auth/transport/__init__.py
index 724568e5828..4575763500b 100644
--- a/contrib/python/google-auth/py3/google/auth/transport/__init__.py
+++ b/contrib/python/google-auth/py3/google/auth/transport/__init__.py
@@ -30,6 +30,7 @@ import http.client as http_client
DEFAULT_RETRYABLE_STATUS_CODES = (
http_client.INTERNAL_SERVER_ERROR,
http_client.SERVICE_UNAVAILABLE,
+ http_client.GATEWAY_TIMEOUT,
http_client.REQUEST_TIMEOUT,
http_client.TOO_MANY_REQUESTS,
)
diff --git a/contrib/python/google-auth/py3/google/auth/version.py b/contrib/python/google-auth/py3/google/auth/version.py
index 13257b95f80..318bf723b43 100644
--- a/contrib/python/google-auth/py3/google/auth/version.py
+++ b/contrib/python/google-auth/py3/google/auth/version.py
@@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-__version__ = "2.40.2"
+__version__ = "2.40.3"
diff --git a/contrib/python/google-auth/py3/tests/compute_engine/test_credentials.py b/contrib/python/google-auth/py3/tests/compute_engine/test_credentials.py
index fddfb7f64d3..03fe845b1f3 100644
--- a/contrib/python/google-auth/py3/tests/compute_engine/test_credentials.py
+++ b/contrib/python/google-auth/py3/tests/compute_engine/test_credentials.py
@@ -501,7 +501,7 @@ class TestIDTokenCredentials(object):
responses.add(
responses.GET,
"http://metadata.google.internal/computeMetadata/v1/instance/"
- "service-accounts/[email protected]/token",
+ "service-accounts/default/token",
status=200,
content_type="application/json",
json={
@@ -659,7 +659,7 @@ class TestIDTokenCredentials(object):
responses.add(
responses.GET,
"http://metadata.google.internal/computeMetadata/v1/instance/"
- "service-accounts/[email protected]/token",
+ "service-accounts/default/token",
status=200,
content_type="application/json",
json={
diff --git a/contrib/python/google-auth/py3/ya.make b/contrib/python/google-auth/py3/ya.make
index b1b28af6a87..9bd4b298b03 100644
--- a/contrib/python/google-auth/py3/ya.make
+++ b/contrib/python/google-auth/py3/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(2.40.2)
+VERSION(2.40.3)
LICENSE(Apache-2.0)