diff options
author | drebs <drebs@leap.se> | 2013-05-23 16:09:23 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-05-23 16:09:39 -0300 |
commit | 6fc38f043e51131647e2a16dad8e1abd10440821 (patch) | |
tree | abb091b4c2e81bf9104dc139e009ac8ff11d3073 /src/leap/soledad/auth.py | |
parent | 0cab642cb1b93185c85bacf10b7ca93a313b7f66 (diff) |
Remove non-token auth schemes.
* Closes #2371.
Diffstat (limited to 'src/leap/soledad/auth.py')
-rw-r--r-- | src/leap/soledad/auth.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/soledad/auth.py b/src/leap/soledad/auth.py index 562a8263..8c093099 100644 --- a/src/leap/soledad/auth.py +++ b/src/leap/soledad/auth.py @@ -25,6 +25,7 @@ they can do token-based auth requests to the Soledad server. from u1db.remote.http_client import HTTPClientBase +from u1db import errors class TokenBasedAuth(object): @@ -66,5 +67,5 @@ class TokenBasedAuth(object): auth = '%s:%s' % (uuid, token) return [('Authorization', 'Token %s' % auth.encode('base64')[:-1])] else: - return HTTPClientBase._sign_request( - self, method, url_query, params) + raise errors.UnknownAuthMethod( + 'Wrong credentials: %s' % self._creds) |