google-auth 2.40.0__tar.gz → 2.40.2__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.0/google_auth.egg-info → google_auth-2.40.2}/PKG-INFO +1 -1
  2. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/aio/_helpers.py +6 -1
  3. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/transport/requests.py +0 -1
  4. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/version.py +1 -1
  5. {google_auth-2.40.0 → google_auth-2.40.2/google_auth.egg-info}/PKG-INFO +1 -1
  6. {google_auth-2.40.0 → google_auth-2.40.2}/tests/aio/test__helpers.py +2 -6
  7. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test__service_account_info.py +1 -1
  8. {google_auth-2.40.0 → google_auth-2.40.2}/LICENSE +0 -0
  9. {google_auth-2.40.0 → google_auth-2.40.2}/MANIFEST.in +0 -0
  10. {google_auth-2.40.0 → google_auth-2.40.2}/README.rst +0 -0
  11. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/__init__.py +0 -0
  12. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/_cloud_sdk.py +0 -0
  13. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/_credentials_async.py +0 -0
  14. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/_credentials_base.py +0 -0
  15. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/_default.py +0 -0
  16. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/_default_async.py +0 -0
  17. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/_exponential_backoff.py +0 -0
  18. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/_helpers.py +0 -0
  19. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/_jwt_async.py +0 -0
  20. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/_oauth2client.py +0 -0
  21. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/_refresh_worker.py +0 -0
  22. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/_service_account_info.py +0 -0
  23. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/aio/__init__.py +0 -0
  24. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/aio/credentials.py +0 -0
  25. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/aio/transport/__init__.py +0 -0
  26. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/aio/transport/aiohttp.py +0 -0
  27. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/aio/transport/sessions.py +0 -0
  28. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/api_key.py +0 -0
  29. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/app_engine.py +0 -0
  30. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/aws.py +0 -0
  31. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/compute_engine/__init__.py +0 -0
  32. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/compute_engine/_metadata.py +0 -0
  33. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/compute_engine/credentials.py +0 -0
  34. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/credentials.py +0 -0
  35. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/crypt/__init__.py +0 -0
  36. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/crypt/_cryptography_rsa.py +0 -0
  37. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/crypt/_helpers.py +0 -0
  38. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/crypt/_python_rsa.py +0 -0
  39. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/crypt/base.py +0 -0
  40. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/crypt/es256.py +0 -0
  41. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/crypt/rsa.py +0 -0
  42. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/downscoped.py +0 -0
  43. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/environment_vars.py +0 -0
  44. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/exceptions.py +0 -0
  45. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/external_account.py +0 -0
  46. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/external_account_authorized_user.py +0 -0
  47. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/iam.py +0 -0
  48. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/identity_pool.py +0 -0
  49. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/impersonated_credentials.py +0 -0
  50. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/jwt.py +0 -0
  51. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/metrics.py +0 -0
  52. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/pluggable.py +0 -0
  53. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/py.typed +0 -0
  54. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/transport/__init__.py +0 -0
  55. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/transport/_aiohttp_requests.py +0 -0
  56. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/transport/_custom_tls_signer.py +0 -0
  57. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/transport/_http_client.py +0 -0
  58. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/transport/_mtls_helper.py +0 -0
  59. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/transport/_requests_base.py +0 -0
  60. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/transport/grpc.py +0 -0
  61. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/transport/mtls.py +0 -0
  62. {google_auth-2.40.0 → google_auth-2.40.2}/google/auth/transport/urllib3.py +0 -0
  63. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/__init__.py +0 -0
  64. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/_client.py +0 -0
  65. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/_client_async.py +0 -0
  66. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/_credentials_async.py +0 -0
  67. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/_id_token_async.py +0 -0
  68. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/_reauth_async.py +0 -0
  69. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/_service_account_async.py +0 -0
  70. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/challenges.py +0 -0
  71. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/credentials.py +0 -0
  72. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/gdch_credentials.py +0 -0
  73. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/id_token.py +0 -0
  74. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/py.typed +0 -0
  75. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/reauth.py +0 -0
  76. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/service_account.py +0 -0
  77. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/sts.py +0 -0
  78. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/utils.py +0 -0
  79. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/webauthn_handler.py +0 -0
  80. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/webauthn_handler_factory.py +0 -0
  81. {google_auth-2.40.0 → google_auth-2.40.2}/google/oauth2/webauthn_types.py +0 -0
  82. {google_auth-2.40.0 → google_auth-2.40.2}/google_auth.egg-info/SOURCES.txt +0 -0
  83. {google_auth-2.40.0 → google_auth-2.40.2}/google_auth.egg-info/dependency_links.txt +0 -0
  84. {google_auth-2.40.0 → google_auth-2.40.2}/google_auth.egg-info/requires.txt +0 -0
  85. {google_auth-2.40.0 → google_auth-2.40.2}/google_auth.egg-info/top_level.txt +0 -0
  86. {google_auth-2.40.0 → google_auth-2.40.2}/setup.cfg +0 -0
  87. {google_auth-2.40.0 → google_auth-2.40.2}/setup.py +0 -0
  88. {google_auth-2.40.0 → google_auth-2.40.2}/tests/__init__.py +0 -0
  89. {google_auth-2.40.0 → google_auth-2.40.2}/tests/compute_engine/__init__.py +0 -0
  90. {google_auth-2.40.0 → google_auth-2.40.2}/tests/compute_engine/data/smbios_product_name +0 -0
  91. {google_auth-2.40.0 → google_auth-2.40.2}/tests/compute_engine/data/smbios_product_name_non_google +0 -0
  92. {google_auth-2.40.0 → google_auth-2.40.2}/tests/compute_engine/test__metadata.py +0 -0
  93. {google_auth-2.40.0 → google_auth-2.40.2}/tests/compute_engine/test_credentials.py +0 -0
  94. {google_auth-2.40.0 → google_auth-2.40.2}/tests/conftest.py +0 -0
  95. {google_auth-2.40.0 → google_auth-2.40.2}/tests/crypt/__init__.py +0 -0
  96. {google_auth-2.40.0 → google_auth-2.40.2}/tests/crypt/test__cryptography_rsa.py +0 -0
  97. {google_auth-2.40.0 → google_auth-2.40.2}/tests/crypt/test__python_rsa.py +0 -0
  98. {google_auth-2.40.0 → google_auth-2.40.2}/tests/crypt/test_crypt.py +0 -0
  99. {google_auth-2.40.0 → google_auth-2.40.2}/tests/crypt/test_es256.py +0 -0
  100. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/authorized_user.json +0 -0
  101. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/authorized_user_cloud_sdk.json +0 -0
  102. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/authorized_user_cloud_sdk_with_quota_project_id.json +0 -0
  103. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/authorized_user_with_rapt_token.json +0 -0
  104. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/client_secrets.json +0 -0
  105. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/context_aware_metadata.json +0 -0
  106. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/enterprise_cert_invalid.json +0 -0
  107. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/enterprise_cert_valid.json +0 -0
  108. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/enterprise_cert_valid_provider.json +0 -0
  109. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/es256_privatekey.pem +0 -0
  110. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/es256_public_cert.pem +0 -0
  111. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/es256_publickey.pem +0 -0
  112. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/es256_service_account.json +0 -0
  113. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/external_account_authorized_user.json +0 -0
  114. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/external_account_authorized_user_non_gdu.json +0 -0
  115. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/external_subject_token.json +0 -0
  116. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/external_subject_token.txt +0 -0
  117. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/gdch_service_account.json +0 -0
  118. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/impersonated_service_account_authorized_user_source.json +0 -0
  119. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/impersonated_service_account_external_account_authorized_user_source.json +0 -0
  120. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/impersonated_service_account_service_account_source.json +0 -0
  121. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/impersonated_service_account_with_quota_project.json +0 -0
  122. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/old_oauth_credentials_py3.pickle +0 -0
  123. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/other_cert.pem +0 -0
  124. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/pem_from_pkcs12.pem +0 -0
  125. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/privatekey.p12 +0 -0
  126. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/privatekey.pem +0 -0
  127. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/privatekey.pub +0 -0
  128. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/public_cert.pem +0 -0
  129. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/service_account.json +0 -0
  130. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/service_account_non_gdu.json +0 -0
  131. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/trust_chain_with_leaf.pem +0 -0
  132. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/trust_chain_without_leaf.pem +0 -0
  133. {google_auth-2.40.0 → google_auth-2.40.2}/tests/data/trust_chain_wrong_order.pem +0 -0
  134. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/__init__.py +0 -0
  135. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test__client.py +0 -0
  136. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test_challenges.py +0 -0
  137. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test_credentials.py +0 -0
  138. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test_gdch_credentials.py +0 -0
  139. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test_id_token.py +0 -0
  140. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test_reauth.py +0 -0
  141. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test_service_account.py +0 -0
  142. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test_sts.py +0 -0
  143. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test_utils.py +0 -0
  144. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test_webauthn_handler.py +0 -0
  145. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test_webauthn_handler_factory.py +0 -0
  146. {google_auth-2.40.0 → google_auth-2.40.2}/tests/oauth2/test_webauthn_types.py +0 -0
  147. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test__cloud_sdk.py +0 -0
  148. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test__default.py +0 -0
  149. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test__exponential_backoff.py +0 -0
  150. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test__helpers.py +0 -0
  151. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test__oauth2client.py +0 -0
  152. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test__refresh_worker.py +0 -0
  153. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_api_key.py +0 -0
  154. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_app_engine.py +0 -0
  155. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_aws.py +0 -0
  156. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_credentials.py +0 -0
  157. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_credentials_async.py +0 -0
  158. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_downscoped.py +0 -0
  159. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_exceptions.py +0 -0
  160. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_external_account.py +0 -0
  161. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_external_account_authorized_user.py +0 -0
  162. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_iam.py +0 -0
  163. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_identity_pool.py +0 -0
  164. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_impersonated_credentials.py +0 -0
  165. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_jwt.py +0 -0
  166. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_metrics.py +0 -0
  167. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_packaging.py +0 -0
  168. {google_auth-2.40.0 → google_auth-2.40.2}/tests/test_pluggable.py +0 -0
  169. {google_auth-2.40.0 → google_auth-2.40.2}/tests/transport/__init__.py +0 -0
  170. {google_auth-2.40.0 → google_auth-2.40.2}/tests/transport/aio/test_aiohttp.py +0 -0
  171. {google_auth-2.40.0 → google_auth-2.40.2}/tests/transport/aio/test_sessions.py +0 -0
  172. {google_auth-2.40.0 → google_auth-2.40.2}/tests/transport/compliance.py +0 -0
  173. {google_auth-2.40.0 → google_auth-2.40.2}/tests/transport/test__custom_tls_signer.py +0 -0
  174. {google_auth-2.40.0 → google_auth-2.40.2}/tests/transport/test__http_client.py +0 -0
  175. {google_auth-2.40.0 → google_auth-2.40.2}/tests/transport/test__mtls_helper.py +0 -0
  176. {google_auth-2.40.0 → google_auth-2.40.2}/tests/transport/test_grpc.py +0 -0
  177. {google_auth-2.40.0 → google_auth-2.40.2}/tests/transport/test_mtls.py +0 -0
  178. {google_auth-2.40.0 → google_auth-2.40.2}/tests/transport/test_requests.py +0 -0
  179. {google_auth-2.40.0 → google_auth-2.40.2}/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.0
3
+ Version: 2.40.2
4
4
  Summary: Google Authentication Library
5
5
  Home-page: https://github.com/googleapis/google-auth-library-python
6
6
  Author: Google Cloud Platform
@@ -53,5 +53,10 @@ async def response_log_async(logger: logging.Logger, response: Any) -> None:
53
53
  response: The HTTP response object to log.
54
54
  """
55
55
  if _helpers.is_logging_enabled(logger):
56
- json_response = await _parse_response_async(response)
56
+ # TODO(https://github.com/googleapis/google-auth-library-python/issues/1755):
57
+ # Parsing the response for async streaming logging results in
58
+ # the stream to be empty downstream. For now, we will not be logging
59
+ # the response for async responses until we investigate further.
60
+ # json_response = await _parse_response_async(response)
61
+ json_response = None
57
62
  _helpers._response_log_base(logger, json_response)
@@ -545,7 +545,6 @@ class AuthorizedSession(requests.Session):
545
545
  timeout=timeout,
546
546
  **kwargs
547
547
  )
548
- _helpers.response_log(_LOGGER, response)
549
548
  remaining_time = guard.remaining_timeout
550
549
 
551
550
  # If the response indicated that the credentials needed to be
@@ -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.0"
15
+ __version__ = "2.40.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-auth
3
- Version: 2.40.0
3
+ Version: 2.40.2
4
4
  Summary: Google Authentication Library
5
5
  Home-page: https://github.com/googleapis/google-auth-library-python
6
6
  Author: Google Cloud Platform
@@ -65,17 +65,13 @@ async def test_response_log_debug_disabled(logger, caplog, base_logger):
65
65
 
66
66
  @pytest.mark.asyncio
67
67
  async def test_response_log_debug_enabled_response_json(logger, caplog, base_logger):
68
- class MockResponse:
69
- async def json(self):
70
- return {"key1": "value1", "key2": "value2", "key3": "value3"}
71
-
72
- response = MockResponse()
68
+ response = None
73
69
  caplog.set_level(logging.DEBUG, logger=_MOCK_CHILD_LOGGER_NAME)
74
70
  await _helpers.response_log_async(logger, response)
75
71
  assert len(caplog.records) == 1
76
72
  record = caplog.records[0]
77
73
  assert record.message == "Response received..."
78
- assert record.httpResponse == {"key1": "value1", "key2": "value2", "key3": "value3"}
74
+ assert record.httpResponse == "<class 'NoneType'>"
79
75
 
80
76
 
81
77
  @pytest.mark.asyncio
@@ -53,7 +53,7 @@ def test_from_dict_bad_private_key():
53
53
  with pytest.raises(ValueError) as excinfo:
54
54
  _service_account_info.from_dict(info)
55
55
 
56
- assert excinfo.match(r"key")
56
+ assert excinfo.match(r"(?i)(key|PEM)")
57
57
 
58
58
 
59
59
  def test_from_dict_bad_format():
File without changes
File without changes
File without changes
File without changes
File without changes