From 937d48a4e8f5bfe6791abacf2fe6049e3423a2f0 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 22 Nov 2021 13:24:06 +0100 Subject: [PATCH] Add missing failed_callback If it fails to check the token, respond through the callback with None as well. Contributes to issue CURA-8539. --- cura/OAuth2/AuthorizationService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/OAuth2/AuthorizationService.py b/cura/OAuth2/AuthorizationService.py index fb2ba40c71..290fc5c651 100644 --- a/cura/OAuth2/AuthorizationService.py +++ b/cura/OAuth2/AuthorizationService.py @@ -134,7 +134,7 @@ class AuthorizationService: self._auth_helpers.getAccessTokenUsingRefreshToken(self._auth_data.refresh_token, process_auth_data) - self._auth_helpers.checkToken(self._auth_data.access_token, check_user_profile) + self._auth_helpers.checkToken(self._auth_data.access_token, check_user_profile, lambda: callback(None)) def getAccessToken(self) -> Optional[str]: """Get the access token as provided by the response data."""