zulip/zproject
Mateusz Mandera f1ec02b40a auth: Add ExternalAuthResult to manage data in authentication flows.
This new type eliminates a bunch of messy code that previously
involved passing around long lists of mixed positional keyword and
arguments, instead using a consistent data object for communicating
about the state of an external authentication (constructed in
backends.py).

The result is a significantly more readable interface between
zproject/backends.py and zerver/views/auth.py, though likely more
could be done.

This has the side effect of renaming fields for internally passed
structures from name->full_name, next->redirect_to; this results in
most of the test codebase changes.

Modified by tabbott to add comments and collaboratively rewrite the
initialization logic.
2020-04-28 22:19:02 -07:00
..
jinja2 static: Serve webpack bundles from the root domain. 2020-04-10 00:48:02 -07:00
__init__.py
backends.py auth: Add ExternalAuthResult to manage data in authentication flows. 2020-04-28 22:19:02 -07:00
config.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
default_settings.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
dev_settings.py dev_settings: Fix run-dev SyntaxError. 2020-04-24 20:08:01 -07:00
dev_urls.py static: Serve webpack bundles from the root domain. 2020-04-10 00:48:02 -07:00
email_backends.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -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 saml: Implement limiting of IdP to specified realms. 2020-04-16 17:04:08 -07:00
settings.py settings: Fix missing typing import. 2020-04-24 17:08:01 -07:00
slack_importer_test_settings.py settings: Migrate test settings to modern postgres backend name. 2019-01-23 17:08:24 -08:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_settings.py static: Serve webpack bundles from the root domain. 2020-04-10 00:48:02 -07:00
urls.py upload: Include filename at the end of temporary access URLs. 2020-04-20 10:25:48 -07:00
wsgi.py setup_path_on_import: Replace with setup_path function. 2020-02-25 15:40:21 -08:00