Add a setting for whether we're using SSO

(imported from commit 76b450d9ebba2828a63f08be61a3b998a1cd7680)
This commit is contained in:
Zev Benjamin
2013-11-13 16:35:14 -05:00
parent 9addde74ec
commit fdc63b48d5

View File

@@ -704,6 +704,8 @@ POLL_TIMEOUT = 90 * 1000
# client tests.
TUTORIAL_ENABLED = True
USING_SSO = ('zproject.backends.ZulipRemoteUserBackend' in AUTHENTICATION_BACKENDS)
if (len(AUTHENTICATION_BACKENDS) == 1 and
AUTHENTICATION_BACKENDS[0] == "zproject.backends.ZulipRemoteUserBackend"):
HOME_NOT_LOGGED_IN = "/accounts/login/sso"