zulip/zproject
Umair Khan ab260731a9 github: Call the appropriate authenticate.
This commit makes sure that GitHubAuthBackend will only authenticate
using its own authenticate method. This is done by adding a new
Python Social Auth strategy which instead of calling authenticate
method of Django, calls the authenticate of the backend directly.

The problem this commit solves is that while authenticating through
GitHub backend, we were ending up getting authenticated through
ZulipDummyBackend. This might happen because the default strategy used
by Python Social Auth calls the authenticate method of Django which
iterates over all the backends and tries the authenticate methods
which match with the function arguments. The new strategy this commit
adds calls the authenticate method of GitHub backend directly which
makes sense because we already know that we want to authenticate with
GithHub.

The actual problem of why we are ending up on ZulipDummyBackend is
still a mystery because the function arguments passed to its
authenticate method are different. It shouldn't be called.
2017-04-17 21:03:08 -07:00
..
jinja2 jinja2: No need for custom render_to_response. 2017-03-17 13:57:34 -07:00
__init__.py
backends.py github: Call the appropriate authenticate. 2017-04-17 21:03:08 -07:00
dev_settings.py Add default response for `terms` and `privacy` endpoints. 2017-04-12 14:09:14 -07:00
dev_urls.py dev: Expose coverage and built documentation to web. 2017-03-23 13:10:06 -07:00
legacy_urls.py Migrate json/set_muted_topics to muting/topics. 2017-03-09 20:52:29 -08:00
local_settings.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
prod_settings_template.py docs: Update email configuration documentation. 2017-02-22 22:26:43 -08:00
settings.py github: Call the appropriate authenticate. 2017-04-17 21:03:08 -07:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_settings.py testing: Use zulip_test_template for backend. 2017-04-14 10:23:31 +05:00
urls.py Add default response for `terms` and `privacy` endpoints. 2017-04-12 14:09:14 -07:00
wsgi.py Django 1.10: Use uWSGI. 2016-12-13 21:40:43 -08:00