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

Mailgun - HTTP webhook signing key instead of API key #119

Open
StefanBayarri opened this issue Jan 23, 2024 · 5 comments
Open

Mailgun - HTTP webhook signing key instead of API key #119

StefanBayarri opened this issue Jan 23, 2024 · 5 comments

Comments

@StefanBayarri
Copy link

StefanBayarri commented Jan 23, 2024

Hello!

We had some issues today with the 'verifySignature' function in the 'MailgunRequest' class. We tried to use an account wide API key and a domain specific API key on Mailgun. We couldn't verify the signature with those keys. You must use the 'HTTP webhook signing key' from Mailgun to let the 'verifySignature' function succeed.

The Laravel Mailbox -> Drivers -> Available drivers -> Mailgun documentation says the following
To use Laravel Mailbox with your Mailgun account, you first need to set the MAILBOX_MAILGUN_KEY environment variable to your Mailgun API key.

But it should be
To use Laravel Mailbox with your Mailgun account, you first need to set the MAILBOX_MAILGUN_KEY environment variable to your HTTP webhook signing key.

The HTTP webhook signing key can be found here when logged in on Mailgun: Click on your name (upper right corner) -> API Security.

Just an heads up for someone that faces this problem as well.
And perhaps the documentation could be updated.

@josecastro22
Copy link

You made my day. Thank you so much.

@1jason1
Copy link

1jason1 commented Feb 14, 2024

Saved me today! Thank you!

@dniccum
Copy link
Contributor

dniccum commented Feb 27, 2024

This is correct. Please update the documentation when able.

@zawilliams
Copy link

Def was going crazy getting a 401 and not understanding why. Thanks @StefanBayarri!

@jamesdavieswales
Copy link

Annnnnnd thank you for saving me from the past 3 hours of messing around with API keys

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

6 participants