Skip to content

Commit 24b0ab8

Browse files
committed
CABPI-324: Change Org check to use new endpoint
1 parent 5c90c10 commit 24b0ab8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/code/Magento/AdminAdobeIms/Service/ImsConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public function getCertificateUrl(string $fileName): string
387387
public function getOrganizationMembershipUrl(string $orgId): string
388388
{
389389
return str_replace(
390-
['#{orgId}'],
390+
['#{org_id}'],
391391
[$orgId],
392392
$this->scopeConfig->getValue(self::XML_PATH_ORGANIZATION_MEMBERSHIP_URL)
393393
);

app/code/Magento/AdminAdobeIms/Service/ImsOrganizationService.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,8 @@ public function checkOrganizationMembership(string $access_token): void
5959
$curl->addHeader('cache-control', 'no-cache');
6060
$curl->addHeader('Authorization', 'Bearer ' . $access_token);
6161

62-
$curl->get(
63-
$this->adminImsConfig->getOrganizationMembershipUrl($configuredOrganizationId),
64-
[]
65-
);
62+
$orgCheckUrl = $this->adminImsConfig->getOrganizationMembershipUrl($configuredOrganizationId);
63+
$curl->get($orgCheckUrl);
6664

6765
if ($curl->getBody() === '') {
6866
throw new AdobeImsOrganizationAuthorizationException(

0 commit comments

Comments
 (0)