Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.4.4/2.4.5 Requires HMAC-SHA256 #2

Open
t3hn4t3 opened this issue Mar 2, 2023 · 0 comments
Open

2.4.4/2.4.5 Requires HMAC-SHA256 #2

t3hn4t3 opened this issue Mar 2, 2023 · 0 comments

Comments

@t3hn4t3
Copy link

t3hn4t3 commented Mar 2, 2023

Recommend update to Client.php for Magento 2.4.4 and higher:

Change
return base64_encode(hash_hmac('sha1', $oauth, $secret, true));
to
return base64_encode(hash_hmac('sha256', $oauth, $secret, true));

Change
'oauth_signature_method' => 'HMAC-SHA1',
to
'oauth_signature_method' => 'HMAC-SHA256',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant