zulip/zerver
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
..
data_import python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
lib auth: Add ExternalAuthResult to manage data in authentication flows. 2020-04-28 22:19:02 -07:00
management pointer: Remove unread debugging management commands. 2020-04-26 22:37:41 -07:00
migrations alert_words: Fix case-sensitivity of alert words. 2020-04-27 11:31:51 -07:00
openapi openapi: Fix servers section to work in online editor. 2020-04-28 14:27:43 -07:00
templatetags openapi: Create markdown extension for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
tests auth: Add ExternalAuthResult to manage data in authentication flows. 2020-04-28 22:19:02 -07:00
tornado python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
views auth: Add ExternalAuthResult to manage data in authentication flows. 2020-04-28 22:19:02 -07:00
webhooks webhooks: Use Gitlab project web_url over repo homepage. 2020-04-24 17:50:47 -07:00
worker python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
context_processors.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
decorator.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
filters.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
forms.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
logging_handlers.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
middleware.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
models.py Revert "home: Don't use pointer to compute furthest_read_time." 2020-04-27 22:29:39 -07:00
signals.py emails: Translate from_name of account security emails. 2020-02-18 17:45:33 -08:00