Skip to content

Commit 7292b7c

Browse files
authored
Add back the deprecated SAML endpoint. (matrix-org#9474)
1 parent d0365bc commit 7292b7c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

changelog.d/9474.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Revert change in v1.28.0rc1 to remove the deprecated SAML endpoint.

synapse/rest/synapse/client/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ def build_synapse_client_resource_tree(hs: "HomeServer") -> Mapping[str, Resourc
5454
if hs.config.saml2_enabled:
5555
from synapse.rest.synapse.client.saml2 import SAML2Resource
5656

57-
resources["/_synapse/client/saml2"] = SAML2Resource(hs)
57+
res = SAML2Resource(hs)
58+
resources["/_synapse/client/saml2"] = res
59+
60+
# This is also mounted under '/_matrix' for backwards-compatibility.
61+
# To be removed in Synapse v1.32.0.
62+
resources["/_matrix/saml2"] = res
5863

5964
return resources
6065

0 commit comments

Comments
 (0)