zulip/zerver/data_import
Cyril Pletinckx ba7da6d5c0 import/export: Fix deprecated authentication method for Slack.
The query string parameter authentication method is now deprecated for
newly created Slack applications since the 24th of February[1].  This
causes Slack imports to fail, claiming that the token has none of the
required scopes.

Two methods can be used to solve this problem: either include the
authentication token in the header of an HTTP GET request, or include
it in the body of an HTTP POST request. The former is preferred, as
the code was already written to use HTTP GET requests.

Change the way the parameters are passed to the "requests.get" method
calls, to pass the token via the `Authorization` header.

[1] https://api.slack.com/changelog/2020-11-no-more-tokens-in-querystrings-for-newly-created-apps

Fixes: #17408.
2021-03-08 12:56:37 -08:00
..
__init__.py
gitter.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
import_util.py import_util: Strengthen get_users type using a Protocol. 2021-02-15 17:05:28 -08:00
mattermost.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
mattermost_user.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
sequencer.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
slack.py import/export: Fix deprecated authentication method for Slack. 2021-03-08 12:56:37 -08:00
slack_message_conversion.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00