From b795f1c144819ea15ac32741d116d708a4b2a3e0 Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Sat, 23 Jan 2021 17:51:50 +0000 Subject: [PATCH] fix python3-related bytes-to-string conversion in google auth --- helios_auth/auth_systems/google.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helios_auth/auth_systems/google.py b/helios_auth/auth_systems/google.py index b713404..0b08b04 100644 --- a/helios_auth/auth_systems/google.py +++ b/helios_auth/auth_systems/google.py @@ -49,7 +49,7 @@ def get_user_info_after_auth(request): http = credentials.authorize(http) (resp_headers, content) = http.request("https://people.googleapis.com/v1/people/me?personFields=names", "GET") - response = utils.from_json(content) + response = utils.from_json(content.decode('utf-8')) name = response['names'][0]['displayName'] -- GitLab