Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
saml: Update RelayState format.
Anders Kaseorg7e29b35fa081
diff --git a/zproject/backends.py b/zproject/backends.pyindex b012402d1b1..0628794914f 100644--- a/zproject/backends.py+++ b/zproject/backends.py@@ -3374,7 +3374,7 @@ class SAMLAuthBackend(SocialAuthMixin, SAMLAuth):# super().auth_complete expects to have RelayState set to the idp_name,# so we need to replace this param.post_params = self.strategy.request.POST.copy()- post_params["RelayState"] = idp_name+ post_params["RelayState"] = orjson.dumps({"idp": idp_name}).decode()self.strategy.request.POST = post_params# Call the auth_complete method of SocialAuthMixIn