summary refs log tree commit diff
path: root/synapse/api
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 /synapse/api
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--synapse/api/auth.py9
1 files changed, 0 insertions, 9 deletions
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.