summary refs log tree commit diff
path: root/synapse/server.pyi
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-08-08 16:34:07 +0100
committerRichard van der Hoff <richard@matrix.org>2016-08-08 16:40:39 +0100
commit6fe6a6f0299c97086a552eda75570eaa66ff2598 (patch)
treecfaee34a62c400691bd318115c183cdfefc850ab /synapse/server.pyi
parentMerge pull request #992 from matrix-org/erikj/psutil_conditional (diff)
downloadsynapse-6fe6a6f0299c97086a552eda75570eaa66ff2598.tar.xz
Fix login with m.login.token
login with token (as used by CAS auth) was broken by 067596d, such that it
always returned a 401.
Diffstat (limited to 'synapse/server.pyi')
-rw-r--r--synapse/server.pyi4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/server.pyi b/synapse/server.pyi
index c0aa868c4f..9570df5537 100644
--- a/synapse/server.pyi
+++ b/synapse/server.pyi
@@ -1,3 +1,4 @@
+import synapse.api.auth
 import synapse.handlers
 import synapse.handlers.auth
 import synapse.handlers.device
@@ -6,6 +7,9 @@ import synapse.storage
 import synapse.state
 
 class HomeServer(object):
+    def get_auth(self) -> synapse.api.auth.Auth:
+        pass
+
     def get_auth_handler(self) -> synapse.handlers.auth.AuthHandler:
         pass