mirror of
https://github.com/zulip/zulip.git
synced 2026-07-18 21:04:19 +08:00
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)
|
||
|---|---|---|
| .. | ||
| fixtures | ||
| lib | ||
| management | ||
| migrations | ||
| templatetags | ||
| tests/frontend | ||
| views | ||
| worker | ||
| __init__.py | ||
| context_processors.py | ||
| decorator.py | ||
| exceptions.py | ||
| filters.py | ||
| finders.py | ||
| forms.py | ||
| handlers.py | ||
| middleware.py | ||
| models.py | ||
| openid.py | ||
| retention_policy.py | ||
| static_header.txt | ||
| storage.py | ||
| tests.py | ||
| tornado_callbacks.py | ||
| tornadoviews.py | ||