From cc1071598ad45e682a14dc8b3c1fe553e8158593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20Ku=C5=9Bnierz?= Date: Wed, 13 Jul 2022 20:43:17 +0200 Subject: [PATCH] Call the v2 identity service `/3pid/unbind` endpoint, rather than v1. (#13240) * Drop support for v1 unbind Signed-off-by: Jacek Kusnierz * Add changelog Signed-off-by: Jacek Kusnierz * Update changelog.d/13240.misc --- changelog.d/13240.misc | 1 + synapse/handlers/identity.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog.d/13240.misc diff --git a/changelog.d/13240.misc b/changelog.d/13240.misc new file mode 100644 index 000000000..0567e47d6 --- /dev/null +++ b/changelog.d/13240.misc @@ -0,0 +1 @@ +Call the v2 identity service `/3pid/unbind` endpoint, rather than v1. \ No newline at end of file diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py index 164d891e9..9571d461c 100644 --- a/synapse/handlers/identity.py +++ b/synapse/handlers/identity.py @@ -281,8 +281,8 @@ class IdentityHandler: "id_server must be a valid hostname with optional port and path components", ) - url = "https://%s/_matrix/identity/api/v1/3pid/unbind" % (id_server,) - url_bytes = b"/_matrix/identity/api/v1/3pid/unbind" + url = "https://%s/_matrix/identity/v2/3pid/unbind" % (id_server,) + url_bytes = b"/_matrix/identity/v2/3pid/unbind" content = { "mxid": mxid,