Remove the SSO-only realm integration.

It's messy code, only one customer ever used it, and it's not in use
today.

(imported from commit af3f512ac6af74af66c588c7d40d699e98514d0a)
This commit is contained in:
Tim Abbott
2015-09-19 21:16:18 -07:00
parent 25a9ccccf1
commit fcec80461b
4 changed files with 6 additions and 17 deletions

View File

@@ -14,9 +14,7 @@ from oauth2client.crypt import AppIdentityError
def password_auth_enabled(realm):
if realm is not None:
if realm.domain == 'employees.customer16.invalid':
return False
elif realm.domain == 'zulip.com' and settings.PRODUCTION:
if realm.domain == 'zulip.com' and settings.PRODUCTION:
# the dropbox realm is SSO only, but the unit tests still need to be
# able to login
return False