summaryrefslogtreecommitdiff
path: root/src/leap/soledad/server/auth.py
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-08-23 05:25:54 -0300
committerdrebs <drebs@riseup.net>2017-09-05 11:08:47 -0300
commit90685484c829d98db74dfd8e1cf01ed418f3c423 (patch)
tree5cb70058175be25f56480b33364df3cb137b4692 /src/leap/soledad/server/auth.py
parent54f28b30c81da5f699cc90846f182377d9efb11a (diff)
[refactor] add localhost endpoint to server tac
-- Related: #8867
Diffstat (limited to 'src/leap/soledad/server/auth.py')
-rw-r--r--src/leap/soledad/server/auth.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/soledad/server/auth.py b/src/leap/soledad/server/auth.py
index 934517b5..4dbe9a6d 100644
--- a/src/leap/soledad/server/auth.py
+++ b/src/leap/soledad/server/auth.py
@@ -86,7 +86,7 @@ class LocalServicesRealm(object):
conf = get_config()
self.anon_resource = SoledadAnonResource(
enable_blobs=conf['blobs'])
- self.auth_resource = LocalResource(conf)
+ self.auth_resource = LocalResource()
def requestAvatar(self, avatarId, mind, *interfaces):
@@ -105,6 +105,7 @@ class LocalServicesRealm(object):
@implementer(ICredentialsChecker)
class FileTokenChecker(object):
+ credentialInterfaces = [IUsernamePassword, IAnonymous]
def __init__(self, conf=None):
conf = conf or get_config()