zulip/zproject
Luke Faraone 3948e1673d [manual] Accept OAuth2 tokens for API login via Google Apps
This is used by the Android app to authenticate without prompting for a
password.

To do so, we implement a custom authentication backend that validates
the ID token provided by Google and then tries to see if we have a
corresponding UserProfile on file for them.

If the attestation is valid but the user is unregistered, we return that
fact by modifying a dictionary passed in as a parameter. We then return
the appropriate error message via the API.

This commit adds a dependency on the "googleapi" module. On Debian-based
systems with the Zulip APT repository:
    sudo apt-get install python-googleapi

For OS X and other platforms:
    pip install googleapi

(imported from commit dbda4e657e5228f081c39af95f956bd32dd20139)
2014-01-13 13:30:55 -05:00
..
__init__.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
authhack.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
backends.py [manual] Accept OAuth2 tokens for API login via Google Apps 2014-01-13 13:30:55 -05:00
local_settings_template.py enterprise: Add option to forward feedback to an email address. 2013-11-25 16:59:36 -05:00
local_settings.py [manual] Accept OAuth2 tokens for API login via Google Apps 2014-01-13 13:30:55 -05:00
settings.py Use compiled.js in dev environments. 2014-01-10 21:39:04 -05:00
test_settings.py logging: Log management commands that are run. 2013-11-20 14:31:08 -05:00
urls.py Fix typo in comment 2014-01-13 13:09:11 -05:00
wsgi.py Import zerver.models in wsgi.py 2013-11-12 19:18:35 -05:00