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
118
118
}
119
119
120
120
$ tokenResponse = $ this ->adminImsConnection ->getTokenResponse ($ code );
121
+ $ accessToken = $ tokenResponse ->getAccessToken ();
121
122
122
- $ profile = $ this ->adminImsConnection ->getProfile ($ tokenResponse -> getAccessToken () );
123
+ $ profile = $ this ->adminImsConnection ->getProfile ($ accessToken );
123
124
if (empty ($ profile ['email ' ])) {
124
125
throw new AuthenticationException (__ ('An authentication error occurred. Verify and try again. ' ));
125
126
}
126
127
127
- $ accessToken = $ tokenResponse ->getAccessToken ();
128
- $ this ->adminOrganizationService ->checkOrganizationAllocation ($ accessToken );
128
+ //check membership in organization
129
+ $ this ->adminOrganizationService ->checkOrganizationMembership ($ accessToken );
130
+
129
131
$ this ->adminReauthProcessService ->execute ($ tokenResponse );
130
132
131
133
$ response = sprintf (
You can’t perform that action at this time.
0 commit comments