From 8b0b7a12f51ee825befb58616f07639cf9010eb7 Mon Sep 17 00:00:00 2001 From: mpoul-pht <42947850+mpoul-pht@users.noreply.github.com> Date: Mon, 25 Jan 2021 08:43:36 +0300 Subject: [PATCH] FIx Header for auth token The current version of the backend no longer handles the header containing "Authorization :GoogleLogin auth=ya29.a0AfH6SMBK...". The correct content of the authentication field is "Authorization :Bearer ya29.a0AfH6SMAP" --- gpapi/googleplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpapi/googleplay.py b/gpapi/googleplay.py index 60c6ca6..b902a59 100644 --- a/gpapi/googleplay.py +++ b/gpapi/googleplay.py @@ -141,7 +141,7 @@ def getHeaders(self, upload_fields=False): if self.gsfId is not None: headers["X-DFE-Device-Id"] = "{0:x}".format(self.gsfId) if self.authSubToken is not None: - headers["Authorization"] = "GoogleLogin auth=%s" % self.authSubToken + headers["Authorization"] = "Bearer %s" % self.authSubToken if self.device_config_token is not None: headers["X-DFE-Device-Config-Token"] = self.device_config_token if self.deviceCheckinConsistencyToken is not None: