This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 540658c need to instantiate a URL pool for this to work
540658c is described below
commit 540658c6263353e6823a3cb65486c7a04e7c4d72
Author: Daniel Gruno <[email protected]>
AuthorDate: Thu Jun 3 15:15:58 2021 +0200
need to instantiate a URL pool for this to work
---
server/plugins/oauthGoogle.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/plugins/oauthGoogle.py b/server/plugins/oauthGoogle.py
index d4b6b36..f9a9418 100644
--- a/server/plugins/oauthGoogle.py
+++ b/server/plugins/oauthGoogle.py
@@ -29,11 +29,12 @@ import google.auth.transport.urllib3
import google.oauth2.id_token
import plugins.server
import plugins.session
+import urllib3
async def process(formdata, _session, server: plugins.server.BaseServer):
js = None
- request = google.auth.transport.urllib3.Request()
+ request = google.auth.transport.urllib3.Request(urllib3.PoolManager())
# This is a synchronous process, so we offload it to an async runner in
order to let the main loop continue.
id_info = await server.runners.run(
google.oauth2.id_token.verify_oauth2_token,