mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Add a setting for whether we're using SSO
(imported from commit 76b450d9ebba2828a63f08be61a3b998a1cd7680)
This commit is contained in:
		@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user