summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorHugh Nimmo-Smith <hughns@element.io>2023-09-22 18:01:59 +0100
committerHugh Nimmo-Smith <hughns@element.io>2023-09-22 18:01:59 +0100
commit151b237768a4d54944cd9966aa6c94f05e6b1c12 (patch)
tree9239b7430d6e37dba7a0cb845b2e5efe9272c25c /synapse
parentLint (diff)
downloadsynapse-hughns/msc3882-unstable-r1.tar.xz
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/capabilities.py3
-rw-r--r--synapse/rest/client/login.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/synapse/rest/client/capabilities.py b/synapse/rest/client/capabilities.py

index 3154b9f77e..002e8f3a4c 100644 --- a/synapse/rest/client/capabilities.py +++ b/synapse/rest/client/capabilities.py
@@ -68,6 +68,9 @@ class CapabilitiesRestServlet(RestServlet): "m.get_login_token": { "enabled": self.config.auth.login_via_existing_enabled, }, + "org.matrix.msc3882.get_login_token": { + "enabled": self.config.auth.login_via_existing_enabled, + }, } } diff --git a/synapse/rest/client/login.py b/synapse/rest/client/login.py
index 7be327e26f..35f1899af2 100644 --- a/synapse/rest/client/login.py +++ b/synapse/rest/client/login.py
@@ -174,6 +174,7 @@ class LoginRestServlet(RestServlet): # If the login token flow is enabled advertise the get_login_token flag. if self._get_login_token_enabled: tokenTypeFlow["get_login_token"] = True + tokenTypeFlow["org.matrix.msc3882.get_login_token"] = True flows.append(tokenTypeFlow) flows.extend({"type": t} for t in self.auth_handler.get_supported_login_types())