mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +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)
|
||
|---|---|---|
| .. | ||
| puppet-apt | ||
| puppet-common | ||
| zulip | ||
| zulip_internal | ||
| apt | ||
| common | ||