Skip to content

Commit

Permalink
fix(saml): slo_url is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Aug 29, 2023
1 parent 00babd5 commit 336ebf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion allauth/socialaccount/providers/saml/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ def build_saml_config(request, provider_config, org):
"entityId": idp["entity_id"],
"x509cert": idp["x509cert"],
"singleSignOnService": {"url": idp["sso_url"]},
"singleLogoutService": {"url": idp["slo_url"]},
}
slo_url = idp.get("slo_url")
if slo_url:
saml_config["idp"]["singleLogoutService"] = {"url": slo_url}

saml_config["sp"] = build_sp_config(request, provider_config, org)
return saml_config

0 comments on commit 336ebf1

Please sign in to comment.