mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Zulip 服务器和 Web 应用程序。开源团队聊天可帮助团队保持高效和专注。
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)
|
||
|---|---|---|
| analytics | ||
| api | ||
| assets | ||
| bin | ||
| bots | ||
| confirmation | ||
| corporate | ||
| humbug | ||
| node_modules | ||
| puppet | ||
| scripts | ||
| static | ||
| templates | ||
| tools | ||
| zerver | ||
| zilencer | ||
| zproject | ||
| .gitattributes | ||
| .gitignore | ||
| LICENSE | ||
| manage.py | ||
| zulip_tools.py | ||