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

Fix the empty SLS binding when SLO disabled

parent 4194ef02
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,8 @@ def create_onelogin_settings(template=app_settings.ONELOGIN_SETTINGS_TEMPLATE):
settings["sp"]["assertionConsumerService"]["url"] = host_full + urls.reverse("sso-saml2-acs")
if app_settings.SP_SLS_ENABLED:
settings["sp"]["singleLogoutService"]["url"] = host_full + urls.reverse("sso-saml2-sls")
else:
del settings["sp"]["singleLogoutService"]
settings["sp"]["x509cert"] = read_key(app_settings.SP_CERT)
settings["sp"]["privateKey"] = read_key(app_settings.SP_KEY)
# done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment