History

Fix HubSpot optional scopes for workspace OAuth (#1898)

* Fix HubSpot optional scopes for workspace OAuth * chore: rerun flaky cloud E2E * Honor integration-declared HubSpot optional scopes * Test queue timeout with a controlled clock * Verify optional OAuth scopes through consent and tool execution ---------

Lloyd Vickery committed 2 months ago

Commit 65d939e1 parent 5ecb8819 files · +347 −21Browse files

Showing the changes to apps/cloud/src/engine (1 of 9 files). Show all

Unified · Split

apps/cloud/src/engine/first-party-oauth-clients.ts+1−6
@@ -6,6 +6,7 @@ import { · 5 unmodified lines
66 } from "@executor-js/plugin-openapi/providers/microsoft";
77 import { slackMcpUserScopes } from "@executor-js/react/lib/slack-mcp-oauth";
88 import { IntegrationSlug, type FirstPartyOAuthClientConfig } from "@executor-js/sdk";
9+import { HUBSPOT_OPTIONAL_SCOPES } from "@executor-js/sdk/host-internal";
910
1011 import { makeGoogleOAuthListing } from "../analytics/google-oauth-listing";
1112 import { POSTHOG_INGEST_HOST } from "../edge/passthrough";
@@ -152,12 +153,6 @@ const HUBSPOT_REQUIRED_SCOPES = [ · 140 unmodified lines
152153 "timeline",
153154 ] as const;
154155
155−const HUBSPOT_OPTIONAL_SCOPES = [
156− "content",
157− "crm.objects.custom.read",
158− "crm.schemas.custom.read",
159−] as const;
160−
161156 const MICROSOFT_SCOPES = [
162157 "User.Read",
163158 "Calendars.ReadWrite",