mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
Previously the `check_token_access` is called for every request we get from Slack webhook, this may introduce significant latency. This commit moves `check_token_access` to the same condition for when we need to handle Slack challenge handshake so that we only do API token check once per URL registered. Additionally, we now check for the specific scopes that we need to run the Slack webhook integration (SLACK_INTEGRATION_TOKEN_SCOPES). Fixes part of #30827.
19 KiB
19 KiB