Skip to content

Commit

Permalink
Merge pull request #477 from Paritoshyadav/my-new-feature
Browse files Browse the repository at this point in the history
Fix shopify hmac validation by inculding host params
  • Loading branch information
techknowlogick authored Oct 26, 2022
2 parents 45d69da + 36399aa commit 0aa0078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/shopify/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string,
// Validate the incoming HMAC is valid.
// See: https://help.shopify.com/en/api/getting-started/authentication/oauth#verification
digest := fmt.Sprintf(
"code=%s&shop=%s&state=%s&timestamp=%s",
"code=%s&host=%s&shop=%s&state=%s&timestamp=%s",
params.Get("code"),
params.Get("host"),
params.Get("shop"),
params.Get("state"),
params.Get("timestamp"),
Expand Down

0 comments on commit 0aa0078

Please sign in to comment.