forked from pool/python-google-auth
- Remove no-python3.patch - Update to 2.17.3: * Add useEmailAzp claim for id token iam flow (#1270) (7a9c6f2) - 2.17.2: * Do not create new JWT credentials if they make the same claims as the existing. (#1267) (eebb7b6) - 2.17.1: * Print out reauth plugin error and raise if challenge output is None (#1265) (08d22fe) - 2.17.0: * Experimental service account iam endpoint flow for id token (#1258) (8ff0de5) * Python: Remove aws url validation (#1254) (20a966b) - 2.16.3: * Read both applicationId and relyingPartyId. (#1246) (e125dfe) - 2.16.2: * Call gcloud config get project to get project for user cred (#1243) (c078a13) * Do not use hardcoded string 'python', when you mean sys.executable. (#1233) (91ac8e6) * Don't retry if error or error_description is not string (#1241) (e2d263a) * Improve ADC related errors and warnings (#1237) (2dfa213) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=60
37 lines
1.6 KiB
Diff
37 lines
1.6 KiB
Diff
Index: google-auth-2.17.3/google/auth/transport/urllib3.py
|
|
===================================================================
|
|
--- google-auth-2.17.3.orig/google/auth/transport/urllib3.py
|
|
+++ google-auth-2.17.3/google/auth/transport/urllib3.py
|
|
@@ -95,8 +95,8 @@ class Request(transport.Request):
|
|
credentials.refresh(request)
|
|
|
|
Args:
|
|
- http (urllib3.request.RequestMethods): An instance of any urllib3
|
|
- class that implements :class:`~urllib3.request.RequestMethods`,
|
|
+ http (urllib3._request_methods.RequestMethods): An instance of any urllib3
|
|
+ class that implements :class:`~urllib3._request_methods.RequestMethods`,
|
|
usually :class:`urllib3.PoolManager`.
|
|
|
|
.. automethod:: __call__
|
|
@@ -184,7 +184,7 @@ def _make_mutual_tls_http(cert, key):
|
|
return http
|
|
|
|
|
|
-class AuthorizedHttp(urllib3.request.RequestMethods):
|
|
+class AuthorizedHttp(urllib3._request_methods.RequestMethods):
|
|
"""A urllib3 HTTP class with credentials.
|
|
|
|
This class is used to perform requests to API endpoints that require
|
|
@@ -197,8 +197,9 @@ class AuthorizedHttp(urllib3.request.Req
|
|
response = authed_http.request(
|
|
'GET', 'https://www.googleapis.com/storage/v1/b')
|
|
|
|
- This class implements :class:`urllib3.request.RequestMethods` and can be
|
|
- used just like any other :class:`urllib3.PoolManager`.
|
|
+ This class implements
|
|
+ :class:`urllib3._request_methods.RequestMethods` and can be used
|
|
+ just like any other :class:`urllib3.PoolManager`.
|
|
|
|
The underlying :meth:`urlopen` implementation handles adding the
|
|
credentials' headers to the request and refreshing credentials as needed.
|