-
Notifications
You must be signed in to change notification settings - Fork 190
Open
Description
Issue summary
When using Utils::validateHmac()
to validate the HMAC provided by Shopify for an embedded app, any URLs that contain an associative array trigger an "array to string conversion" error on line 91. This method was refactored in #269 and associative array handling wasn't implemented.
Expected behavior
While it would be nice if this library handled associative arrays properly, I'd be fine implementing them in our project if it was documented anywhere how Shopify handles them. I've tried many, many different variations of encoding an associative array into a URL, but have not been able to get the HMAC to match. It's somewhat common to have URLs like ?filter[status]=live
and it would be nice to use them with an embedded app and still be able to verify the HMAC.
Steps to reproduce the problem
- Pass an associative array to
Utils::validateHmac()
to reproduce the issue.
ragulka
Metadata
Metadata
Assignees
Labels
No labels