Document how to setup Google auth for Zulip voyager.

This commit is contained in:
Tim Abbott 2015-09-26 13:50:46 -07:00
parent 140e598a89
commit 5dd330e769
2 changed files with 8 additions and 1 deletions

View File

@ -91,7 +91,6 @@ class GoogleMobileOauth2Backend(ZulipAuthMixin):
https://developers.google.com/+/mobile/android/sign-in#server-side_access_for_your_app
https://developers.google.com/accounts/docs/CrossClientAuth#offlineAccess
This backend is not currently supported on voyager.
"""
def authenticate(self, google_oauth2_token=None, return_data={}):
try:

View File

@ -23,6 +23,14 @@ AUTHENTICATION_BACKENDS = (
# 'zproject.backends.GoogleMobileOauth2Backend', # Google Apps, setup below
)
# Google Oauth requires a bit of configuration; you will need to go to
# https://console.developers.google.com, setup an Oauth2 client ID
# that allows redirects to
# e.g. https://zulip.example.com/accounts/login/google/done/ put your
# client secret as "google_oauth2_client_secret" in
# zulip-secrets.conf, and your cleitn ID here:
# GOOGLE_OAUTH2_CLIENT_ID=<your client ID from Google>
# If you are using the ZulipRemoteUserBackend authentication backend,
# set this to your domain (e.g. if REMOTE_USER is "username" and the
# corresponding email address is "username@example.com", set