summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-05-03 10:10:57 +0100
committerGitHub <noreply@github.com>2018-05-03 10:10:57 +0100
commit902673e356f0b731350e7d31dc8369fe25838718 (patch)
tree5a1aed0a205c26b62c716c229235406a968c674d /synapse/server.py
parentMerge pull request #3175 from matrix-org/erikj/escape_metric_values (diff)
parentBurminate v1auth (diff)
downloadsynapse-902673e356f0b731350e7d31dc8369fe25838718.tar.xz
Merge pull request #3161 from NotAFile/remove-v1auth
Make Client-Server API return 403 for invalid token
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/synapse/server.py b/synapse/server.py

index cd0c1a51be..ebdea6b0c4 100644 --- a/synapse/server.py +++ b/synapse/server.py
@@ -105,7 +105,6 @@ class HomeServer(object): 'federation_client', 'federation_server', 'handlers', - 'v1auth', 'auth', 'state_handler', 'state_resolution_handler', @@ -225,15 +224,6 @@ class HomeServer(object): def build_simple_http_client(self): return SimpleHttpClient(self) - def build_v1auth(self): - orf = Auth(self) - # Matrix spec makes no reference to what HTTP status code is returned, - # but the V1 API uses 403 where it means 401, and the webclient - # relies on this behaviour, so V1 gets its own copy of the auth - # with backwards compat behaviour. - orf.TOKEN_NOT_FOUND_HTTP_STATUS = 403 - return orf - def build_state_handler(self): return StateHandler(self)