Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants