From 5dd330e7691d381f263f0723ffe9a58050d12ed7 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 26 Sep 2015 13:50:46 -0700 Subject: [PATCH] Document how to setup Google auth for Zulip voyager. --- zproject/backends.py | 1 - zproject/local_settings_template.py | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/zproject/backends.py b/zproject/backends.py index b811213a08..9f89568789 100644 --- a/zproject/backends.py +++ b/zproject/backends.py @@ -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: diff --git a/zproject/local_settings_template.py b/zproject/local_settings_template.py index 6b45f05a57..caa8bba47e 100644 --- a/zproject/local_settings_template.py +++ b/zproject/local_settings_template.py @@ -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= + # 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