This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
Auth Shopify Middleware are not working with headers #599
Labels
pre-v17
Issue was created before release of v17
unconfirmed
Unconfirmed yet if it is a true bug/issue.
Expected Behavior
I am developing API where I use osiset package.
And my client send auth data(hmac, session, shop, timestamp, locale) through headers.
After Auth Shopify Middleware accepted the data - authentication should be successful.
Current Behavior
We have getData() method in the vendor/osiset/laravel-shopify/src/ShopifyApp/Http/Middleware/AuthShopify.php
This method should return Array something like this:
All elements of this array are required.
So according to getData() method we have 3 possible methods to grab the Auth data:
In my case I want to use headers, but in the header's branch of code the session header is missing:
`
So, current behavior:
This happens because session header is missing in the getData() method
Context
Package Version: v12.0.1
Laravel Version: v7.28.4
PHP Version: v7.2.24
The text was updated successfully, but these errors were encountered: