Add back the deprecated SAML endpoint. (#9474)

This commit is contained in:
Patrick Cloke 2021-02-23 12:57:37 -05:00 committed by GitHub
parent d0365bc8b0
commit 7292b7c0eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

1
changelog.d/9474.misc Normal file
View File

@ -0,0 +1 @@
Revert change in v1.28.0rc1 to remove the deprecated SAML endpoint.

View File

@ -54,7 +54,12 @@ def build_synapse_client_resource_tree(hs: "HomeServer") -> Mapping[str, Resourc
if hs.config.saml2_enabled: if hs.config.saml2_enabled:
from synapse.rest.synapse.client.saml2 import SAML2Resource 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 return resources