This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Commit 9f7ecd7
bug(slack/api): Make slack /event respond to challenge (#5375)
* fix(slack): Make slack /events respond to challenge
When configuring event listening for a slack app, your endpoint is
required to respond correctly to the slack challenge that is sent. If
your endpoint does not respond correctly, slack will not let you use it.
Currently, the events endpoint does not respond correctly to the
challenge because it is using a background thread to process all
incoming events and responding with a static response. In order to use
the events endpoint correctly (including using an @ in the incident
channel to add an observer), that endpoint has to respond. I altered the
event post to check the body for a "url_verification" type and, if it
exists, process the event synchronously in the same way the `actions`
endpoint does. Otherwise, process async like it always has.
* add reformatting
---------
Co-authored-by: Marc Vilanova <[email protected]>1 parent 295a60f commit 9f7ecd7
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
85 | 96 | | |
86 | 97 | | |
87 | 98 | | |
| |||
0 commit comments