summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorQuentin Gliech <quenting@element.io>2022-06-17 14:48:55 +0200
committerPatrick Cloke <clokep@users.noreply.github.com>2023-05-30 09:43:06 -0400
commite2c8458bba5ab20f84c93a6c68e293b2d304cdc0 (patch)
treed837e4ce681352140dc1a8d4806c3ecb397d3e96 /synapse/server.py
parentRemove unused `FederationServer.__str__` override (#15690) (diff)
downloadsynapse-e2c8458bba5ab20f84c93a6c68e293b2d304cdc0.tar.xz
Make the api.auth.Auth a Protocol
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/server.py b/synapse/server.py
index cce5fb66ff..df88af12a9 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -31,6 +31,7 @@ from twisted.web.iweb import IPolicyForHTTPS
 from twisted.web.resource import Resource
 
 from synapse.api.auth import Auth
+from synapse.api.auth.internal import InternalAuth
 from synapse.api.auth_blocking import AuthBlocking
 from synapse.api.filtering import Filtering
 from synapse.api.ratelimiting import Ratelimiter, RequestRatelimiter
@@ -427,7 +428,7 @@ class HomeServer(metaclass=abc.ABCMeta):
 
     @cache_in_self
     def get_auth(self) -> Auth:
-        return Auth(self)
+        return InternalAuth(self)
 
     @cache_in_self
     def get_auth_blocking(self) -> AuthBlocking: