Include defaults for AUTHENTICATION_BACKENDS

(imported from commit cdfffacc45f30e6959085ba8bc5aed72ae3527cf)
This commit is contained in:
David Roe 2015-08-18 18:47:14 -07:00 committed by Tim Abbott
parent 78f32dcbd8
commit 2ffd022a5f
1 changed files with 8 additions and 6 deletions

View File

@ -174,13 +174,15 @@ EMAIL_GATEWAY_BOT = "emailgateway@zulip.com"
SSO_APPEND_DOMAIN = None
## WARNING: DO NOT ENABLE DevAuthBackend UNLESS YOU WANT
## ANYONE TO BE ABLE TO LOG IN AS ANY USER.
# AUTHENTICATION_BACKENDS = ('zproject.backends.DevAuthBackend',)
if DEPLOYED:
AUTHENTICATION_BACKENDS = ('zproject.backends.EmailAuthBackend',
'zproject.backends.GoogleMobileOauth2Backend',
'zproject.backends.GoogleBackend')
else:
## WARNING: ENABLING DevAuthBackend WILL ENABLE
## ANYONE TO LOG IN AS ANY USER.
AUTHENTICATION_BACKENDS = ('zproject.backends.DevAuthBackend',)
AUTHENTICATION_BACKENDS = ('zproject.backends.EmailAuthBackend',
'zproject.backends.GoogleMobileOauth2Backend',
'zproject.backends.GoogleBackend')
DROPBOX_APP_KEY = "xxxxxxxxxxxxxxx"