zulip/zproject
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
..
jinja2 zproject: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
__init__.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
backends.py auth: Restore a minimal SocialAuthMixin. 2018-07-03 18:53:59 +02:00
dev_settings.py search: Add setting to control whether search pills are enabled. 2018-07-23 11:29:10 -07:00
dev_urls.py casper: Show casper debug files in the dev server. 2018-06-04 09:02:58 -07:00
email_backends.py requirements: Upgrade pyflakes to 2.0.0. 2018-05-24 11:31:36 -07:00
legacy_urls.py urls: Move the json/fetch_api_key endpoint to be an API-style route. 2018-01-08 13:15:52 -05:00
prod_settings_template.py thumbnaling: Support S3 upload backend in thumbor. 2018-07-15 00:57:59 +05:30
settings.py webpack: Migrate archive bundle to webpack. 2018-07-23 15:19:44 -07:00
slack_importer_test_settings.py slack importer: Use standalone database for running tests. 2018-01-07 09:50:27 -05:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_settings.py search: Make search query a contenteditable div for search pill. 2018-07-23 11:29:10 -07:00
urls.py api: Stop using API keys for Django->Tornado authentication. 2018-07-30 12:28:31 -07:00
wsgi.py python: Add lint rule banning 'from os.path import'. 2017-09-22 04:55:38 -07:00