From 5163122783762c7aa7621b339bfbf5e6bb14f2a3 Mon Sep 17 00:00:00 2001 From: Win Date: Tue, 3 Dec 2024 16:58:07 +0700 Subject: [PATCH] [1.2.0] Custom application (cont.) --- processor/src/types/index.types.ts | 2 ++ processor/src/utils/config.utils.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/processor/src/types/index.types.ts b/processor/src/types/index.types.ts index fe615b3..7808e76 100644 --- a/processor/src/types/index.types.ts +++ b/processor/src/types/index.types.ts @@ -23,6 +23,8 @@ export type ConnectorEnvVars = { region: string; authUrl: string; authMode: string; + sessionAudience: string; + sessionIssuer: string; }; mollie: { testApiKey: string; diff --git a/processor/src/utils/config.utils.ts b/processor/src/utils/config.utils.ts index 65d0e76..58e6f6e 100644 --- a/processor/src/utils/config.utils.ts +++ b/processor/src/utils/config.utils.ts @@ -16,6 +16,7 @@ export const readConfiguration = () => { projectKey: process.env.CTP_PROJECT_KEY as string, scope: process.env.CTP_SCOPE as string, region: process.env.CTP_REGION as string, + authUrl: process.env.CTP_AUTH_URL as string, authMode: process.env.AUTHENTICATION_MODE as string, sessionAudience: (process.env.CTP_SESSION_AUDIENCE as string) || 'https://mc.europe-west1.gcp.commercetools.com', sessionIssuer: (process.env.CTP_SESSION_ISSUER as string) || 'gcp-eu',