From 3baf63eafb332ee7a013c34a4d17e0d6cdbe1804 Mon Sep 17 00:00:00 2001 From: Floke Date: Thu, 26 Feb 2026 07:15:16 +0000 Subject: [PATCH] fix: Refactor SuperOfficeClient to support production environments and global token endpoints [31188f42] --- connector-superoffice/superoffice_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connector-superoffice/superoffice_client.py b/connector-superoffice/superoffice_client.py index 3f481c44..ed2cd1fc 100644 --- a/connector-superoffice/superoffice_client.py +++ b/connector-superoffice/superoffice_client.py @@ -28,7 +28,7 @@ class SuperOfficeClient: self.access_token = None return - self.base_url = f"https://app-{self.env}.superoffice.com/{self.cust_id}/api/v1" + self.base_url = f"https://{self.env}.superoffice.com/{self.cust_id}/api/v1" self.access_token = self._refresh_access_token() if not self.access_token: @@ -43,7 +43,7 @@ class SuperOfficeClient: def _refresh_access_token(self): """Refreshes and returns a new access token.""" - url = f"https://{self.env}.superoffice.com/login/common/oauth/tokens" + url = "https://online.superoffice.com/login/common/oauth/tokens" logger.debug(f"DEBUG: Refresh URL: '{url}' (Env: '{self.env}')") data = {