Skip to content

Commit 4057769

Browse files
committed
CABPI-332: Rename method in AdobeImsTokenUserService
1 parent 6d3c72c commit 4057769

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/code/Magento/AdminAdobeIms/Model/Authorization/AdobeImsTokenUserContext.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private function processRequest()
9999
}
100100

101101
try {
102-
$adminUserId = $this->tokenUserService->updateAdminUserProfile($bearerToken);
102+
$adminUserId = $this->tokenUserService->getAdminUserIdByToken($bearerToken);
103103
} catch (AuthenticationException $e) {
104104
$this->isRequestProcessed = true;
105105
return;
@@ -109,8 +109,6 @@ private function processRequest()
109109
$this->isRequestProcessed = true;
110110
}
111111

112-
113-
114112
/**
115113
* Getting requested token
116114
*

app/code/Magento/AdminAdobeIms/Model/Authorization/AdobeImsTokenUserService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function __construct(
6969
}
7070

7171
/**
72-
* Update adobe_user_id for admin user
72+
* get adobe_user_id from token and store it for admin user
7373
*
7474
* @param string $bearerToken
7575
* @return int
@@ -78,7 +78,7 @@ public function __construct(
7878
* @throws CouldNotSaveException
7979
* @throws InvalidArgumentException
8080
*/
81-
public function updateAdminUserProfile(string $bearerToken): int
81+
public function getAdminUserIdByToken(string $bearerToken): int
8282
{
8383
$tokenData = $this->tokenReader->read($bearerToken);
8484

0 commit comments

Comments
 (0)