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

apply verification middleware only on the webhook endpoint #1203

Merged
merged 2 commits into from
Jan 18, 2018

Conversation

nishch
Copy link
Contributor

@nishch nishch commented Jan 9, 2018

This is a fix for issue #601

Root cause of the Issue:
issue occurs because when we enable token verification for the slack webhook endpoint, verification middleware get's applied to all the endpoints (including "/login" and others) since middleware is mounted at the root .

Fix:
Changes in this PR ensure that verification middleware only get's applied to slack webhook endpoint (i.e. /slack/receive)

@benbrown benbrown merged commit 4a42422 into howdyai:master Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants