Skip to content

Commit d15cdff

Browse files
committed
Skip AC-9337 due to PAT failure
1 parent 3cf4445 commit d15cdff

File tree

3 files changed

+0
-42
lines changed

3 files changed

+0
-42
lines changed

app/code/Magento/Integration/Api/TokenManager.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,4 @@ public function revokeFor(UserContextInterface $userContext): void
9494
{
9595
$this->tokenRevoker->revokeFor($userContext);
9696
}
97-
98-
/**
99-
* Revoke previously issued tokens for given user.
100-
*
101-
* @param UserContextInterface $userContext
102-
* @return void
103-
*/
104-
public function revokeForOld(UserContextInterface $userContext): void
105-
{
106-
$this->tokenRevoker->revokeForOld($userContext);
107-
}
10897
}

app/code/Magento/Integration/Model/CustomerTokenService.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public function createCustomerAccessToken($username, $password)
7777
CustomUserContext::USER_TYPE_CUSTOMER
7878
);
7979
$params = $this->tokenManager->createUserTokenParameters();
80-
$this->revokeCustomerAccessTokenOld($customerDataObject->getId());
8180

8281
return $this->tokenManager->create($context, $params);
8382
}
@@ -115,23 +114,4 @@ private function getRequestThrottler()
115114
}
116115
return $this->requestThrottler;
117116
}
118-
119-
/**
120-
* Revoke old token by customer id.
121-
*
122-
* @param int $customerId
123-
* @return bool
124-
* @throws \Magento\Framework\Exception\LocalizedException
125-
*/
126-
public function revokeCustomerAccessTokenOld($customerId)
127-
{
128-
try {
129-
$this->tokenManager->revokeForOld(
130-
new CustomUserContext((int)$customerId, CustomUserContext::USER_TYPE_CUSTOMER)
131-
);
132-
} catch (UserTokenException $exception) {
133-
throw new LocalizedException(__('Failed to revoke customer\'s access tokens'), $exception);
134-
}
135-
return true;
136-
}
137117
}

app/code/Magento/JwtUserToken/Model/Revoker.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,4 @@ public function revokeFor(UserContextInterface $userContext): void
3939
new Revoked((int) $userContext->getUserType(), (int) $userContext->getUserId(), time())
4040
);
4141
}
42-
43-
/**
44-
* @inheritDoc
45-
*/
46-
public function revokeForOld(UserContextInterface $userContext): void
47-
{
48-
//Invalidating all tokens issued before current datetime.
49-
$this->revokedRepo->saveRevoked(
50-
new Revoked((int) $userContext->getUserType(), (int) $userContext->getUserId(), time()-1)
51-
);
52-
}
5342
}

0 commit comments

Comments
 (0)