@steve_guardiani it might fail because of the IP address. This package includes a middleware to check if requests comes from whitelisted IPs.
Authenticating incoming http webhooks from Postmark
Using Laravel 5.8
I'm trying to get notifications from postmark when "outbound" emails are delivered. I'm using https://packagist.org/packages/mvdnbrk/laravel-postmark-webhooks and I've followed the installation steps.
When I try sending a test from postmark, I get a 401, my app is not allowing access. I sort of expected that because I haven't set up the Basic auth credentials (Username and Password).
I can setup the credentials on postmark but I have no idea where to configure the credentials in my Laravel app.
I've tried updating my .env file and added MAILBOX_HTTP_USERNAME and MAILBOX_HTTP_PASSWORD but that only seems relevant for a different package and I'm still getting the 401.
Can any one tell me where I configure the credentials in Laravel? I'm new to webhooks and would really appreciate some guidance here.
I think you need to create a user account in your users table with username and hashed password
Share these credentials with Postmark
Add middleware to your webhook route that uses onceBasic() authentication
https://laravel.com/docs/5.8/authentication#stateless-http-basic-authentication
Please or to participate in this conversation.