File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
app/code/Magento/AdminAdobeIms/Controller/Adminhtml/OAuth Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -118,14 +118,16 @@ public function execute(): ResultInterface
118118 }
119119
120120 $ tokenResponse = $ this ->adminImsConnection ->getTokenResponse ($ code );
121+ $ accessToken = $ tokenResponse ->getAccessToken ();
121122
122- $ profile = $ this ->adminImsConnection ->getProfile ($ tokenResponse -> getAccessToken () );
123+ $ profile = $ this ->adminImsConnection ->getProfile ($ accessToken );
123124 if (empty ($ profile ['email ' ])) {
124125 throw new AuthenticationException (__ ('An authentication error occurred. Verify and try again. ' ));
125126 }
126127
127- $ accessToken = $ tokenResponse ->getAccessToken ();
128- $ this ->adminOrganizationService ->checkOrganizationAllocation ($ accessToken );
128+ //check membership in organization
129+ $ this ->adminOrganizationService ->checkOrganizationMembership ($ accessToken );
130+
129131 $ this ->adminReauthProcessService ->execute ($ tokenResponse );
130132
131133 $ response = sprintf (
You can’t perform that action at this time.
0 commit comments