carpewang
08/08/2025, 12:44 AMpython
def get_connection_by_user_app(self, user_id: str, app_name="googleslides"):
url = f"{self.base_url}/api/v1/connectedAccounts?appUniqueId={app_name}&entityId={user_id}"
response = requests.get(url, headers=self.headers)
if response.status_code == 200:
response_data = response.json().get('items', [])
else:
raise Exception(f"Failed to get connections: HTTP {response.status_code} - {response.text}")
if len(response_data) == 0:
return None
return response_data[0]
and it still returns a valid connection, even though the user never logged in for Slides.
My understanding was that GOOGLEDOCS and GOOGLESLIDES are separate toolkits in Composio, each requiring its own auth config. Does Composio internally share the same Google OAuth token between these two apps, or is this because the Google Docs authorization request already includes Slides-related scopes?
Could you clarify whether this behavior is expected by design, and if so, how appUniqueId is handled in this case?Composio Support Agent
08/08/2025, 4:51 AMcarpewang
08/09/2025, 7:52 PMComposio Support Agent
08/10/2025, 5:43 AM