summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Gliech <quenting@element.io>2022-09-14 16:33:54 +0200
committerGitHub <noreply@github.com>2022-09-14 10:33:54 -0400
commiteaed4e6113f5ed40056fa02ae922cb273d02be6e (patch)
tree4233b0c4d07b761d8639b714f1e7829342790ef1
parentRemove incorrect migration file from `state` logical DB (#13788) (diff)
downloadsynapse-eaed4e6113f5ed40056fa02ae922cb273d02be6e.tar.xz
Remove unused method in `synapse.api.auth.Auth`. (#13795)
Clean-up from b19060a29b4f73897847db2aba5d03ec819086e0 (#13094)
and 73af10f419346a5f2d70131ac1ed8e69942edca0 (#13093) which removed
all callers.
Diffstat (limited to '')
-rw-r--r--changelog.d/13795.misc1
-rw-r--r--synapse/api/auth.py9
2 files changed, 1 insertions, 9 deletions
diff --git a/changelog.d/13795.misc b/changelog.d/13795.misc
new file mode 100644
index 0000000000..20d90cc130
--- /dev/null
+++ b/changelog.d/13795.misc
@@ -0,0 +1 @@
+Remove unused method in `synapse.api.auth.Auth`.
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index 4a75eb6b21..3d7f986ac7 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -459,15 +459,6 @@ class Auth:
             )
             raise InvalidClientTokenError("Invalid access token passed.")
 
-    def get_appservice_by_req(self, request: SynapseRequest) -> ApplicationService:
-        token = self.get_access_token_from_request(request)
-        service = self.store.get_app_service_by_token(token)
-        if not service:
-            logger.warning("Unrecognised appservice access token.")
-            raise InvalidClientTokenError()
-        request.requester = create_requester(service.sender, app_service=service)
-        return service
-
     async def is_server_admin(self, requester: Requester) -> bool:
         """Check if the given user is a local server admin.