From 59251b6c5f8d055faa8fb610cdbf3be6ec127d1f Mon Sep 17 00:00:00 2001 From: Eric Wu <95886809+Eric-B-Wu@users.noreply.github.com> Date: Tue, 31 Dec 2024 16:30:16 -0500 Subject: [PATCH] fix(standalone): Passing Appsettings to standalone designer services (#6210) small commit --- .../app/AzureLogicAppsDesigner/laDesigner.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/Standalone/src/designer/app/AzureLogicAppsDesigner/laDesigner.tsx b/apps/Standalone/src/designer/app/AzureLogicAppsDesigner/laDesigner.tsx index 40f55dbee49..57002dabc5b 100644 --- a/apps/Standalone/src/designer/app/AzureLogicAppsDesigner/laDesigner.tsx +++ b/apps/Standalone/src/designer/app/AzureLogicAppsDesigner/laDesigner.tsx @@ -175,6 +175,7 @@ const DesignerEditor = () => { canonicalLocation, language, queryClient, + settingsData?.properties ?? {}, dispatch ), // eslint-disable-next-line react-hooks/exhaustive-deps @@ -445,6 +446,7 @@ const getDesignerServices = ( location: string, locale: string | undefined, queryClient: QueryClient, + appSettings: Record, dispatch: AppDispatch ): any => { const siteResourceId = new ArmParser(workflowId).topmostResourceId; @@ -473,7 +475,15 @@ const getDesignerServices = ( tenantId, httpClient, }, - workflowAppDetails: { appName, identity: workflowApp?.identity as any }, + workflowAppDetails: isHybrid + ? { + appName, + identity: { + principalId: appSettings['WORKFLOWAPP_AAD_OBJECTID'], + tenantId: appSettings['WORKFLOWAPP_AAD_TENANTID'], + }, + } + : { appName, identity: workflowApp?.identity as any }, readConnections: () => Promise.resolve(connectionsData), writeConnection: addConnection as any, connectionCreationClients: { @@ -504,7 +514,7 @@ const getDesignerServices = ( const artifactService = new ArtifactService({ ...armServiceParams, siteResourceId, - integrationAccountCallbackUrl: undefined, + integrationAccountCallbackUrl: appSettings['WORKFLOW_INTEGRATION_ACCOUNT_CALLBACK_URL'], }); const appService = new BaseAppServiceService({ baseUrl: armUrl,