From d4d153806c962971bdb0ec5ef1341595e4d90059 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Thu, 8 Oct 2020 14:08:12 -0400 Subject: [PATCH] Expose the experimental appservice login flow to clients. --- changelog.d/8504.bugfix | 1 + synapse/rest/client/v1/login.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelog.d/8504.bugfix diff --git a/changelog.d/8504.bugfix b/changelog.d/8504.bugfix new file mode 100644 index 000000000000..2bd0dbb8b464 --- /dev/null +++ b/changelog.d/8504.bugfix @@ -0,0 +1 @@ +Expose the `uk.half-shot.msc2778.login.application_service` to clients from the login API. This feature was added in v1.21.0, but was not exposed as a potential login flow. diff --git a/synapse/rest/client/v1/login.py b/synapse/rest/client/v1/login.py index 3d1693d7acfb..b9347b87c7c6 100644 --- a/synapse/rest/client/v1/login.py +++ b/synapse/rest/client/v1/login.py @@ -111,6 +111,8 @@ def on_GET(self, request: SynapseRequest): ({"type": t} for t in self.auth_handler.get_supported_login_types()) ) + flows.append({"type": LoginRestServlet.APPSERVICE_TYPE}) + return 200, {"flows": flows} def on_OPTIONS(self, request: SynapseRequest):