File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
lib/internal/Magento/Framework/Oauth/Helper Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 88namespace Magento \Framework \Oauth \Helper ;
99
1010use Laminas \OAuth \Http \Utility as LaminasUtility ;
11- use Magento \Framework \Oauth \Helper \Signature \Hmac ;
1211use Magento \Framework \Oauth \Helper \Signature \HmacFactory ;
1312
1413class Utility
@@ -41,8 +40,12 @@ public function sign(
4140 ?string $ url = null
4241 ): string {
4342 if ($ this ->isHmac256 ($ signatureMethod )) {
44- /** @var Hmac $hmac */
45- $ hmac = $ this ->hmacFactory ->create (['consumerSecret ' => $ consumerSecret , 'tokenSecret ' => $ tokenSecret , 'hashAlgo ' => 'sha256 ' ]);
43+ $ hmac = $ this ->hmacFactory ->create (
44+ ['consumerSecret ' => $ consumerSecret ,
45+ 'tokenSecret ' => $ tokenSecret ,
46+ 'hashAlgo ' => 'sha256 '
47+ ]
48+ );
4649
4750 return $ hmac ->sign ($ params , $ method , $ url );
4851 } else {
You can’t perform that action at this time.
0 commit comments