-
Notifications
You must be signed in to change notification settings - Fork 46
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
Authenticating webhooks #11
Comments
Well, any configuration for this would need to be done on the overarching Griddler config in the initializer. At the moment we'd need to re-open As far as the configuration itself, I think anything that responds to We'd need to define a new exception or two, subclassed from In the mean time, can you utilize the @calebthompson any thoughts? |
Yeah I suppose email processor is more concentrated than trying to overload controller, but it still couples my implementation to an adapter, which is less ideal compared to an optional config. I'll wait for more feedback before writing any code for this. |
If you are worried about coupling to the adapter in the short term, write your email processor sans-authentication then subclass that email processor and override I am not against adding this to |
Did any work commence on this? If not, I will have a look into it. Cheers, Joel |
Mandrill allows you to authenticate that a webook came from them.
I know I could override the controller and handle it there, but then the adapter I've chosen to use with Griddler starts to leak into other parts of my codebase and it increases the perceived friction of using this adapter.
Personally I'd prefer if the adapter checked an optional config for the key, and attempted to verify request signatures when config is present. I'm happy to open a PR with these changes if you're open to supporting that behavior.
Also, I'm curious what your preferred means of defining that config would be.
The text was updated successfully, but these errors were encountered: