zulip/zerver/tornado
Tim Abbott 02ae71f27f api: Stop using API keys for Django->Tornado authentication.
As part of our effort to change the data model away from each user
having a single API key, we're eliminating the couple requests that
were made from Django to Tornado (as part of a /register or home
request) where we used the user's API key grabbed from the database
for authentication.

Instead, we use the (already existing) internal_notify_view
authentication mechanism, which uses the SHARED_SECRET setting for
security, for these requests, and just fetch the user object using
get_user_profile_by_id directly.

Tweaked by Yago to include the new /api/v1/events/internal endpoint in
the exempt_patterns list in test_helpers, since it's an endpoint we call
through Tornado. Also added a couple missing return type annotations.
2018-07-30 12:28:31 -07:00
..
__init__.py tornado: Move tornado_ioloop_logging to new zerver/tornado tree. 2016-11-26 21:24:05 -08:00
application.py api: Stop using API keys for Django->Tornado authentication. 2018-07-30 12:28:31 -07:00
autoreload.py requirements: Upgrade pyflakes to 2.0.0. 2018-05-24 11:31:36 -07:00
descriptors.py Mypy: Migrate tornado/descriptors.py to python3 function annotations. 2018-03-15 12:54:43 -07:00
event_queue.py api: Stop using API keys for Django->Tornado authentication. 2018-07-30 12:28:31 -07:00
exceptions.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
handlers.py requirements: Upgrade pyflakes to 2.0.0. 2018-05-24 11:31:36 -07:00
ioloop_logging.py tornado: Sort imports in files with no merge conflicts. 2017-11-15 15:53:11 -08:00
socket.py zerver/tornado: Change use of typing.Text to str. 2018-05-12 15:22:38 -07:00
views.py api: Stop using API keys for Django->Tornado authentication. 2018-07-30 12:28:31 -07:00
websocket_client.py mypy: Use Python 3 type syntax in zerver/tornado/websocket_client.py. 2017-12-09 16:50:12 -08:00