File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
app/code/Magento/AdminAdobeIms/Service Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 9
9
namespace Magento \AdminAdobeIms \Service ;
10
10
11
11
use Magento \AdminAdobeIms \Exception \AdobeImsOrganizationAuthorizationException ;
12
- use Magento \Framework \Exception \InvalidArgumentException ;
13
12
14
13
class ImsOrganizationService
15
14
{
16
- /**
17
- * Regex to verify a valid AdobeOrg Organization ID string.
18
- */
19
- private const ORGANIZATION_REGEX = '/([A-Z0-9]{24})(@AdobeOrg)?/i ' ;
20
-
21
15
/**
22
16
* @var ImsConfig
23
17
*/
@@ -52,24 +46,4 @@ public function checkOrganizationAllocation(string $token): bool
52
46
53
47
return true ;
54
48
}
55
-
56
- /**
57
- * Check if OrganizationID matches pattern
58
- *
59
- * @param string $organizationId
60
- * @return string
61
- * @throws AdobeImsOrganizationAuthorizationException
62
- */
63
- private function validateAndExtractOrganizationId (string $ organizationId ): string
64
- {
65
- if (preg_match (self ::ORGANIZATION_REGEX , $ organizationId , $ matches )) {
66
- if (!empty ($ matches ) && isset ($ matches [1 ])) {
67
- return $ matches [1 ];
68
- }
69
- }
70
-
71
- throw new AdobeImsOrganizationAuthorizationException (
72
- __ ('No valid organization ID provided ' )
73
- );
74
- }
75
49
}
You can’t perform that action at this time.
0 commit comments