mirror of
https://github.com/zulip/zulip.git
synced 2025-11-22 07:21:23 +00:00
Previously, the `check_token_access` function had a hardcoded `required_parameters` variable because it was only used in the Slack data importer. This commit refactors `required_parameters` into a function parameter, enabling the function to check a Slack token’s scope for other purposes, such as Slack webhook integration. Additionally, this commit changes the Slack API call in `check_token_access` from `teams.info` to `api.test`. The endpoint is better suited for this purpose since we're only checking a token’s scope using the response header here.
61 KiB
61 KiB