From 9658f4a34bd09900d3895961b13be0b954351cb6 Mon Sep 17 00:00:00 2001 From: Jacek Kusnierz Date: Mon, 11 Jul 2022 11:24:56 +0200 Subject: [PATCH 1/3] Drop support for v1 unbind Signed-off-by: Jacek Kusnierz --- synapse/handlers/identity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py index 9bca2bc4b24e..c797d71413b2 100644 --- a/synapse/handlers/identity.py +++ b/synapse/handlers/identity.py @@ -300,8 +300,8 @@ async def try_unbind_threepid_with_id_server( "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, From 3f483a51a74aa589da557825ea6a1c1ec6f37597 Mon Sep 17 00:00:00 2001 From: Jacek Kusnierz Date: Mon, 11 Jul 2022 11:38:34 +0200 Subject: [PATCH 2/3] Add changelog Signed-off-by: Jacek Kusnierz --- changelog.d/13240.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/13240.misc diff --git a/changelog.d/13240.misc b/changelog.d/13240.misc new file mode 100644 index 000000000000..770c5d0eb33d --- /dev/null +++ b/changelog.d/13240.misc @@ -0,0 +1 @@ +Drop support for v1 unbind. \ No newline at end of file From d68b64a92f1279992468a50f3f4c803059c29506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20Ku=C5=9Bnierz?= Date: Tue, 12 Jul 2022 20:33:33 +0200 Subject: [PATCH 3/3] Update changelog.d/13240.misc Co-authored-by: David Robertson --- changelog.d/13240.misc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.d/13240.misc b/changelog.d/13240.misc index 770c5d0eb33d..0567e47d64e0 100644 --- a/changelog.d/13240.misc +++ b/changelog.d/13240.misc @@ -1 +1 @@ -Drop support for v1 unbind. \ No newline at end of file +Call the v2 identity service `/3pid/unbind` endpoint, rather than v1. \ No newline at end of file