google-auth 2.40.2__tar.gz → 2.40.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. {google_auth-2.40.2/google_auth.egg-info → google_auth-2.40.3}/PKG-INFO +1 -1
  2. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/compute_engine/credentials.py +2 -1
  3. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/transport/__init__.py +1 -0
  4. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/version.py +1 -1
  5. {google_auth-2.40.2 → google_auth-2.40.3/google_auth.egg-info}/PKG-INFO +1 -1
  6. {google_auth-2.40.2 → google_auth-2.40.3}/tests/compute_engine/test_credentials.py +2 -2
  7. {google_auth-2.40.2 → google_auth-2.40.3}/LICENSE +0 -0
  8. {google_auth-2.40.2 → google_auth-2.40.3}/MANIFEST.in +0 -0
  9. {google_auth-2.40.2 → google_auth-2.40.3}/README.rst +0 -0
  10. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/__init__.py +0 -0
  11. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/_cloud_sdk.py +0 -0
  12. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/_credentials_async.py +0 -0
  13. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/_credentials_base.py +0 -0
  14. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/_default.py +0 -0
  15. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/_default_async.py +0 -0
  16. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/_exponential_backoff.py +0 -0
  17. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/_helpers.py +0 -0
  18. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/_jwt_async.py +0 -0
  19. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/_oauth2client.py +0 -0
  20. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/_refresh_worker.py +0 -0
  21. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/_service_account_info.py +0 -0
  22. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/aio/__init__.py +0 -0
  23. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/aio/_helpers.py +0 -0
  24. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/aio/credentials.py +0 -0
  25. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/aio/transport/__init__.py +0 -0
  26. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/aio/transport/aiohttp.py +0 -0
  27. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/aio/transport/sessions.py +0 -0
  28. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/api_key.py +0 -0
  29. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/app_engine.py +0 -0
  30. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/aws.py +0 -0
  31. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/compute_engine/__init__.py +0 -0
  32. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/compute_engine/_metadata.py +0 -0
  33. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/credentials.py +0 -0
  34. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/crypt/__init__.py +0 -0
  35. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/crypt/_cryptography_rsa.py +0 -0
  36. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/crypt/_helpers.py +0 -0
  37. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/crypt/_python_rsa.py +0 -0
  38. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/crypt/base.py +0 -0
  39. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/crypt/es256.py +0 -0
  40. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/crypt/rsa.py +0 -0
  41. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/downscoped.py +0 -0
  42. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/environment_vars.py +0 -0
  43. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/exceptions.py +0 -0
  44. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/external_account.py +0 -0
  45. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/external_account_authorized_user.py +0 -0
  46. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/iam.py +0 -0
  47. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/identity_pool.py +0 -0
  48. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/impersonated_credentials.py +0 -0
  49. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/jwt.py +0 -0
  50. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/metrics.py +0 -0
  51. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/pluggable.py +0 -0
  52. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/py.typed +0 -0
  53. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/transport/_aiohttp_requests.py +0 -0
  54. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/transport/_custom_tls_signer.py +0 -0
  55. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/transport/_http_client.py +0 -0
  56. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/transport/_mtls_helper.py +0 -0
  57. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/transport/_requests_base.py +0 -0
  58. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/transport/grpc.py +0 -0
  59. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/transport/mtls.py +0 -0
  60. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/transport/requests.py +0 -0
  61. {google_auth-2.40.2 → google_auth-2.40.3}/google/auth/transport/urllib3.py +0 -0
  62. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/__init__.py +0 -0
  63. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/_client.py +0 -0
  64. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/_client_async.py +0 -0
  65. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/_credentials_async.py +0 -0
  66. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/_id_token_async.py +0 -0
  67. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/_reauth_async.py +0 -0
  68. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/_service_account_async.py +0 -0
  69. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/challenges.py +0 -0
  70. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/credentials.py +0 -0
  71. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/gdch_credentials.py +0 -0
  72. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/id_token.py +0 -0
  73. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/py.typed +0 -0
  74. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/reauth.py +0 -0
  75. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/service_account.py +0 -0
  76. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/sts.py +0 -0
  77. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/utils.py +0 -0
  78. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/webauthn_handler.py +0 -0
  79. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/webauthn_handler_factory.py +0 -0
  80. {google_auth-2.40.2 → google_auth-2.40.3}/google/oauth2/webauthn_types.py +0 -0
  81. {google_auth-2.40.2 → google_auth-2.40.3}/google_auth.egg-info/SOURCES.txt +0 -0
  82. {google_auth-2.40.2 → google_auth-2.40.3}/google_auth.egg-info/dependency_links.txt +0 -0
  83. {google_auth-2.40.2 → google_auth-2.40.3}/google_auth.egg-info/requires.txt +0 -0
  84. {google_auth-2.40.2 → google_auth-2.40.3}/google_auth.egg-info/top_level.txt +0 -0
  85. {google_auth-2.40.2 → google_auth-2.40.3}/setup.cfg +0 -0
  86. {google_auth-2.40.2 → google_auth-2.40.3}/setup.py +0 -0
  87. {google_auth-2.40.2 → google_auth-2.40.3}/tests/__init__.py +0 -0
  88. {google_auth-2.40.2 → google_auth-2.40.3}/tests/aio/test__helpers.py +0 -0
  89. {google_auth-2.40.2 → google_auth-2.40.3}/tests/compute_engine/__init__.py +0 -0
  90. {google_auth-2.40.2 → google_auth-2.40.3}/tests/compute_engine/data/smbios_product_name +0 -0
  91. {google_auth-2.40.2 → google_auth-2.40.3}/tests/compute_engine/data/smbios_product_name_non_google +0 -0
  92. {google_auth-2.40.2 → google_auth-2.40.3}/tests/compute_engine/test__metadata.py +0 -0
  93. {google_auth-2.40.2 → google_auth-2.40.3}/tests/conftest.py +0 -0
  94. {google_auth-2.40.2 → google_auth-2.40.3}/tests/crypt/__init__.py +0 -0
  95. {google_auth-2.40.2 → google_auth-2.40.3}/tests/crypt/test__cryptography_rsa.py +0 -0
  96. {google_auth-2.40.2 → google_auth-2.40.3}/tests/crypt/test__python_rsa.py +0 -0
  97. {google_auth-2.40.2 → google_auth-2.40.3}/tests/crypt/test_crypt.py +0 -0
  98. {google_auth-2.40.2 → google_auth-2.40.3}/tests/crypt/test_es256.py +0 -0
  99. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/authorized_user.json +0 -0
  100. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/authorized_user_cloud_sdk.json +0 -0
  101. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/authorized_user_cloud_sdk_with_quota_project_id.json +0 -0
  102. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/authorized_user_with_rapt_token.json +0 -0
  103. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/client_secrets.json +0 -0
  104. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/context_aware_metadata.json +0 -0
  105. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/enterprise_cert_invalid.json +0 -0
  106. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/enterprise_cert_valid.json +0 -0
  107. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/enterprise_cert_valid_provider.json +0 -0
  108. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/es256_privatekey.pem +0 -0
  109. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/es256_public_cert.pem +0 -0
  110. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/es256_publickey.pem +0 -0
  111. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/es256_service_account.json +0 -0
  112. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/external_account_authorized_user.json +0 -0
  113. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/external_account_authorized_user_non_gdu.json +0 -0
  114. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/external_subject_token.json +0 -0
  115. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/external_subject_token.txt +0 -0
  116. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/gdch_service_account.json +0 -0
  117. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/impersonated_service_account_authorized_user_source.json +0 -0
  118. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/impersonated_service_account_external_account_authorized_user_source.json +0 -0
  119. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/impersonated_service_account_service_account_source.json +0 -0
  120. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/impersonated_service_account_with_quota_project.json +0 -0
  121. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/old_oauth_credentials_py3.pickle +0 -0
  122. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/other_cert.pem +0 -0
  123. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/pem_from_pkcs12.pem +0 -0
  124. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/privatekey.p12 +0 -0
  125. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/privatekey.pem +0 -0
  126. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/privatekey.pub +0 -0
  127. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/public_cert.pem +0 -0
  128. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/service_account.json +0 -0
  129. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/service_account_non_gdu.json +0 -0
  130. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/trust_chain_with_leaf.pem +0 -0
  131. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/trust_chain_without_leaf.pem +0 -0
  132. {google_auth-2.40.2 → google_auth-2.40.3}/tests/data/trust_chain_wrong_order.pem +0 -0
  133. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/__init__.py +0 -0
  134. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test__client.py +0 -0
  135. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test_challenges.py +0 -0
  136. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test_credentials.py +0 -0
  137. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test_gdch_credentials.py +0 -0
  138. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test_id_token.py +0 -0
  139. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test_reauth.py +0 -0
  140. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test_service_account.py +0 -0
  141. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test_sts.py +0 -0
  142. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test_utils.py +0 -0
  143. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test_webauthn_handler.py +0 -0
  144. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test_webauthn_handler_factory.py +0 -0
  145. {google_auth-2.40.2 → google_auth-2.40.3}/tests/oauth2/test_webauthn_types.py +0 -0
  146. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test__cloud_sdk.py +0 -0
  147. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test__default.py +0 -0
  148. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test__exponential_backoff.py +0 -0
  149. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test__helpers.py +0 -0
  150. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test__oauth2client.py +0 -0
  151. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test__refresh_worker.py +0 -0
  152. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test__service_account_info.py +0 -0
  153. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_api_key.py +0 -0
  154. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_app_engine.py +0 -0
  155. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_aws.py +0 -0
  156. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_credentials.py +0 -0
  157. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_credentials_async.py +0 -0
  158. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_downscoped.py +0 -0
  159. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_exceptions.py +0 -0
  160. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_external_account.py +0 -0
  161. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_external_account_authorized_user.py +0 -0
  162. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_iam.py +0 -0
  163. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_identity_pool.py +0 -0
  164. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_impersonated_credentials.py +0 -0
  165. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_jwt.py +0 -0
  166. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_metrics.py +0 -0
  167. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_packaging.py +0 -0
  168. {google_auth-2.40.2 → google_auth-2.40.3}/tests/test_pluggable.py +0 -0
  169. {google_auth-2.40.2 → google_auth-2.40.3}/tests/transport/__init__.py +0 -0
  170. {google_auth-2.40.2 → google_auth-2.40.3}/tests/transport/aio/test_aiohttp.py +0 -0
  171. {google_auth-2.40.2 → google_auth-2.40.3}/tests/transport/aio/test_sessions.py +0 -0
  172. {google_auth-2.40.2 → google_auth-2.40.3}/tests/transport/compliance.py +0 -0
  173. {google_auth-2.40.2 → google_auth-2.40.3}/tests/transport/test__custom_tls_signer.py +0 -0
  174. {google_auth-2.40.2 → google_auth-2.40.3}/tests/transport/test__http_client.py +0 -0
  175. {google_auth-2.40.2 → google_auth-2.40.3}/tests/transport/test__mtls_helper.py +0 -0
  176. {google_auth-2.40.2 → google_auth-2.40.3}/tests/transport/test_grpc.py +0 -0
  177. {google_auth-2.40.2 → google_auth-2.40.3}/tests/transport/test_mtls.py +0 -0
  178. {google_auth-2.40.2 → google_auth-2.40.3}/tests/transport/test_requests.py +0 -0
  179. {google_auth-2.40.2 → google_auth-2.40.3}/tests/transport/test_urllib3.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-auth
3
- Version: 2.40.2
3
+ Version: 2.40.3
4
4
  Summary: Google Authentication Library
5
5
  Home-page: https://github.com/googleapis/google-auth-library-python
6
6
  Author: Google Cloud Platform
@@ -124,8 +124,9 @@ class Credentials(
124
124
  scopes = self._scopes if self._scopes is not None else self._default_scopes
125
125
  try:
126
126
  self._retrieve_info(request)
127
+ # Always fetch token with default service account email.
127
128
  self.token, self.expiry = _metadata.get_service_account_token(
128
- request, service_account=self._service_account_email, scopes=scopes
129
+ request, service_account="default", scopes=scopes
129
130
  )
130
131
  except exceptions.TransportError as caught_exc:
131
132
  new_exc = exceptions.RefreshError(caught_exc)
@@ -30,6 +30,7 @@ import http.client as http_client
30
30
  DEFAULT_RETRYABLE_STATUS_CODES = (
31
31
  http_client.INTERNAL_SERVER_ERROR,
32
32
  http_client.SERVICE_UNAVAILABLE,
33
+ http_client.GATEWAY_TIMEOUT,
33
34
  http_client.REQUEST_TIMEOUT,
34
35
  http_client.TOO_MANY_REQUESTS,
35
36
  )
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "2.40.2"
15
+ __version__ = "2.40.3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-auth
3
- Version: 2.40.2
3
+ Version: 2.40.3
4
4
  Summary: Google Authentication Library
5
5
  Home-page: https://github.com/googleapis/google-auth-library-python
6
6
  Author: Google Cloud Platform
@@ -501,7 +501,7 @@ class TestIDTokenCredentials(object):
501
501
  responses.add(
502
502
  responses.GET,
503
503
  "http://metadata.google.internal/computeMetadata/v1/instance/"
504
- "service-accounts/service-account@example.com/token",
504
+ "service-accounts/default/token",
505
505
  status=200,
506
506
  content_type="application/json",
507
507
  json={
@@ -659,7 +659,7 @@ class TestIDTokenCredentials(object):
659
659
  responses.add(
660
660
  responses.GET,
661
661
  "http://metadata.google.internal/computeMetadata/v1/instance/"
662
- "service-accounts/service-account@example.com/token",
662
+ "service-accounts/default/token",
663
663
  status=200,
664
664
  content_type="application/json",
665
665
  json={
File without changes
File without changes
File without changes
File without changes
File without changes