summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-02-25 10:53:31 +0000
committerErik Johnston <erik@matrix.org>2021-02-25 10:53:31 +0000
commit1efdcc3e8724808996a7b60a60ca72c1b96fee0b (patch)
tree0c4d80707391fc3e6a68abd7b3646f79fa5d2cb8 /synapse/rest
parentAdd support for X-Forwarded-Proto (#9472) (diff)
parentFixup changelog (diff)
downloadsynapse-1efdcc3e8724808996a7b60a60ca72c1b96fee0b.tar.xz
Merge branch 'master' into develop
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/synapse/client/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/rest/synapse/client/__init__.py b/synapse/rest/synapse/client/__init__.py
index 8588b6d271..9eeb970580 100644
--- a/synapse/rest/synapse/client/__init__.py
+++ b/synapse/rest/synapse/client/__init__.py
@@ -54,7 +54,12 @@ def build_synapse_client_resource_tree(hs: "HomeServer") -> Mapping[str, Resourc
     if hs.config.saml2_enabled:
         from synapse.rest.synapse.client.saml2 import SAML2Resource
 
-        resources["/_synapse/client/saml2"] = SAML2Resource(hs)
+        res = SAML2Resource(hs)
+        resources["/_synapse/client/saml2"] = res
+
+        # This is also mounted under '/_matrix' for backwards-compatibility.
+        # To be removed in Synapse v1.32.0.
+        resources["/_matrix/saml2"] = res
 
     return resources