From 918eb2f1a6922e2512c1a0f1df255fb6a6a799fe Mon Sep 17 00:00:00 2001 From: Mathieu Lessard Date: Fri, 15 Mar 2024 13:04:10 -0700 Subject: [PATCH] Swapped out ims/api key for MarketingHub one --- contenthub/discovery-service.js | 4 ++-- scripts/reporting/DiscoveryService.js | 2 +- scripts/reporting/InsightsContainer.js | 2 +- scripts/security-imslib.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contenthub/discovery-service.js b/contenthub/discovery-service.js index 68bdfae8..075da9eb 100644 --- a/contenthub/discovery-service.js +++ b/contenthub/discovery-service.js @@ -9,7 +9,7 @@ const REL_REPOSITORY = 'http://ns.adobe.com/adobecloud/rel/repository'; async function getDiscoveryJson() { PlatformConnector.init({ accessToken: await getImsToken(), - apiKey: 'aem-assets-frontend-1', + apiKey: 'content-at-adobe', platformUrl: 'https://aem-discovery.adobe.io', }); @@ -62,7 +62,7 @@ export async function getAEMDiscoveryInfo() { method: 'GET', headers: { Authorization: token, - 'x-api-key': 'aem-assets-content-hub-1', + 'x-api-key': 'content-at-adobe', 'Content-Type': 'application/json', }, }, diff --git a/scripts/reporting/DiscoveryService.js b/scripts/reporting/DiscoveryService.js index e959db88..5dba03dc 100644 --- a/scripts/reporting/DiscoveryService.js +++ b/scripts/reporting/DiscoveryService.js @@ -16,7 +16,7 @@ export async function getDiscovery(bearerToken) { method: 'GET', headers: { 'Content-Type': 'application/json', - 'x-api-key': 'assets-distribution-portal', + 'x-api-key': 'content-at-adobe', Authorization: bearerToken, }, }; diff --git a/scripts/reporting/InsightsContainer.js b/scripts/reporting/InsightsContainer.js index 7e2a0106..730c3fc9 100644 --- a/scripts/reporting/InsightsContainer.js +++ b/scripts/reporting/InsightsContainer.js @@ -29,7 +29,7 @@ export default class InsightsContainer { const bearerToken = await getBearerToken(); const imsOrg = await user.get('imsOrg'); const repoID = await getRepositoryIDWithFilter({ env: imsEnv, 'aem-tier': 'author' }); - const apiKey = 'assets-distribution-portal'; + const apiKey = 'content-at-adobe'; const insightsProps = { imsOrg, repoID, diff --git a/scripts/security-imslib.js b/scripts/security-imslib.js index a349d974..fedb690c 100644 --- a/scripts/security-imslib.js +++ b/scripts/security-imslib.js @@ -6,7 +6,7 @@ import { isPublicPage } from './security.js'; let isIMSInitialized = false; const IMSLIB_ENV_CONFIG = { - clientId: 'aem-assets-content-hub-1', + clientId: 'content-at-adobe', scope: 'openid,AdobeID,additional_info.projectedProductContext,read_organizations', urls: { stage: 'https://auth-stg1.services.adobe.com/imslib/imslib.js',