From b7f35e660458373a50c07dc8a22a5c1e4fbcd581 Mon Sep 17 00:00:00 2001 From: Sijun Liu Date: Mon, 10 Jun 2024 18:36:51 +0000 Subject: [PATCH 1/3] fix: pass trust_env kwarg to ClientSession --- google/auth/transport/_aiohttp_requests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google/auth/transport/_aiohttp_requests.py b/google/auth/transport/_aiohttp_requests.py index 3a8da917a..2769ff99a 100644 --- a/google/auth/transport/_aiohttp_requests.py +++ b/google/auth/transport/_aiohttp_requests.py @@ -307,7 +307,8 @@ async def request( headers[key] = headers[key].decode("utf-8") async with aiohttp.ClientSession( - auto_decompress=self._auto_decompress + auto_decompress=self._auto_decompress, + trust_env=kwargs.get('trust_env', False) ) as self._auth_request_session: auth_request = Request(self._auth_request_session) self._auth_request = auth_request From 49f7d996655c9c8f49c2a0c37fb446be1202a2b5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 10 Jun 2024 18:38:46 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- google/auth/transport/_aiohttp_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/auth/transport/_aiohttp_requests.py b/google/auth/transport/_aiohttp_requests.py index 2769ff99a..bc4d9dc69 100644 --- a/google/auth/transport/_aiohttp_requests.py +++ b/google/auth/transport/_aiohttp_requests.py @@ -308,7 +308,7 @@ async def request( async with aiohttp.ClientSession( auto_decompress=self._auto_decompress, - trust_env=kwargs.get('trust_env', False) + trust_env=kwargs.get("trust_env", False), ) as self._auth_request_session: auth_request = Request(self._auth_request_session) self._auth_request = auth_request From 4b9f90ef90f7bf161c9ba21c84f76f1785e0d396 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 10 Jun 2024 18:39:05 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- google/auth/transport/_aiohttp_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/auth/transport/_aiohttp_requests.py b/google/auth/transport/_aiohttp_requests.py index 2769ff99a..bc4d9dc69 100644 --- a/google/auth/transport/_aiohttp_requests.py +++ b/google/auth/transport/_aiohttp_requests.py @@ -308,7 +308,7 @@ async def request( async with aiohttp.ClientSession( auto_decompress=self._auto_decompress, - trust_env=kwargs.get('trust_env', False) + trust_env=kwargs.get("trust_env", False), ) as self._auth_request_session: auth_request = Request(self._auth_request_session) self._auth_request = auth_request