Skip to content
Snippets Groups Projects
Commit cf70ee88 authored by Art's avatar Art :lizard:
Browse files

Fix the previous commit.

parent 84d16ed2
No related branches found
No related tags found
No related merge requests found
......@@ -18,8 +18,9 @@ for setting_name in [k for k in globals().keys() if k.isupper()]:
# checks
SSO_DISABLED = SSO_DISABLED or getattr(conf.settings, "IDP_IGNORE", False) # legacy config
if not SSO_DISABLED:
assert not conf.settings.DEBUG, "Not ignoring IDP on production."
if SSO_DISABLED:
assert conf.settings.DEBUG, "Not ignoring IDP on production."
else:
assert SP_HOST and SP_PORT, "Need SP_HOST and SP_PORT configured in settings."
assert not SP_HOST.lower().startswith(("http:", "https:",)), "Need host name without protocol and port."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment