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

Verify webhook / Simulate Webhook Request issues #111

Closed
6juara9 opened this issue Feb 5, 2024 · 3 comments
Closed

Verify webhook / Simulate Webhook Request issues #111

6juara9 opened this issue Feb 5, 2024 · 3 comments

Comments

@6juara9
Copy link

6juara9 commented Feb 5, 2024

It seems like these 2 pages works incorrectly for standard webhook type:

I tried to verify my own created webhook and also simulated using this page but it is different from the description in specs + different from multiple online clients.

PS: I know that it appends v1 prefix but still it is different, see the pictures below. Shopify webhook type works correctly on the other hand (probably other types as well)

Simulated one

image

Other clients

image

Screenshot 2024-02-05 at 15 50 10

@J0
Copy link
Contributor

J0 commented Mar 7, 2024

Hi,

I was able to successfully use the tools recently to verify and simulate a request payload. I think the secret key prefix is dropped before signing and the key comes encoded in base64 for the standard webhook payload

If working with a vanilla HMAC signing tool you might need to drop the whsec_ and use a base64 decoded secret to get a similar result. If you paste the relevant code snippets as text I might be able to help check / debug.

Hope this helps!

@6juara9
Copy link
Author

6juara9 commented Mar 12, 2024

Ohhh, yep it works with base64 encode secret, thank you @J0 🥇

@6juara9 6juara9 closed this as completed Mar 12, 2024
@tasn
Copy link
Contributor

tasn commented Mar 12, 2024

Whoops, I completely missed this ticket. Thanks @J0!

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

3 participants