summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2015-08-17 12:18:13 -0300
committerdrebs <drebs@leap.se>2015-08-17 12:18:13 -0300
commit7e72cafacd1fd12217a734b0d86de983264924f3 (patch)
tree1bc9313b8385f28ccd42ba1fdfbbb367175f3830
parentffde23f71594cec5775a1579cdc0ee4b019fbf6d (diff)
[bug] add missing parameter to unauthorized error
-rw-r--r--server/src/leap/soledad/server/auth.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/leap/soledad/server/auth.py b/server/src/leap/soledad/server/auth.py
index 7af4e54b..425758f5 100644
--- a/server/src/leap/soledad/server/auth.py
+++ b/server/src/leap/soledad/server/auth.py
@@ -264,7 +264,8 @@ class SoledadAuthMiddleware(object):
scheme, encoded = auth.split(None, 1)
uuid, auth_data = encoded.decode('base64').split(':', 1)
if not self._verify_authentication_scheme(scheme):
- return self._unauthorized_error("Wrong authentication scheme")
+ return self._unauthorized_error(
+ start_response, "Wrong authentication scheme")
# verify if user is athenticated
try: