Skip to content

Commit 47efec8

Browse files
committed
ACP2E-2969: REST API unable to make requests with slash (/) in SKU when using Oauth1
1 parent 7bd6bf9 commit 47efec8

File tree

1 file changed

+4
-3
lines changed
  • dev/tests/api-functional/framework/Magento/TestFramework/Authentication/Rest/OauthClient

1 file changed

+4
-3
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/Authentication/Rest/OauthClient/Signature.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ function ($carry, $item) {
4242
[]
4343
);
4444

45-
foreach ($params as $key => $value) {
46-
$queryStringData[rawurlencode($key)] = rawurlencode($value);
45+
$signatureData = [];
46+
foreach (array_merge($queryStringData, $params) as $key => $value) {
47+
$signatureData[rawurldecode($key)] = rawurlencode($value);
4748
}
4849

4950
return $this->helper->sign(
50-
$queryStringData,
51+
$signatureData,
5152
'SHA256',
5253
$this->credentials->getConsumerSecret(),
5354
$this->tokenSecret,

0 commit comments

Comments
 (0)