Skip to content

Commit df729b6

Browse files
committed
Allow slack url verification for non-public apps
1 parent aedaea4 commit df729b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/handlers/slack_app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ def _is_app_accessible(self):
162162
if self.request.data.get('type') == 'event_callback' and (self.request.data.get('api_app_id') != self.slack_config.get('app_id') or self.request.data.get('event').get('type') != 'app_mention'):
163163
raise Exception('Invalid Slack request')
164164

165+
# URL verification is allowed without any further checks
166+
if self.request.data.get('type') == 'url_verification':
167+
return True
168+
165169
return super()._is_app_accessible()
166170

167171
def run_app(self):

0 commit comments

Comments
 (0)