mirror of https://github.com/zulip/zulip.git
ab260731a9
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. |
||
---|---|---|
.. | ||
jinja2 | ||
__init__.py | ||
backends.py | ||
dev_settings.py | ||
dev_urls.py | ||
legacy_urls.py | ||
local_settings.py | ||
prod_settings_template.py | ||
settings.py | ||
terms.md.template | ||
test_settings.py | ||
urls.py | ||
wsgi.py |