summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/auth.py
diff options
context:
space:
mode:
authorRoald de Vries <rdevries@thoughtworks.com>2016-10-05 15:25:42 -0300
committerRoald de Vries <rdevries@thoughtworks.com>2016-10-05 15:25:48 -0300
commit8fa81ff3b2cf0422098395ec9918d5b547fbbca5 (patch)
treeaf7cda080ce6a247a102fa161ef07b30e2b81581 /service/pixelated/resources/auth.py
parent3f660a27a73334476941b21785845b78703abcd2 (diff)
remove pixelated realm's init parameters
They weren't used. Currently, the PixelatedAuthSessionWrapper determines the resource to use for a user. It would be more idiomatic to have the realm determine that. Actually, it should return the avatar as an IResource. See http://twistedmatrix.com/documents/current/web/howto/web-in-60/http-auth.html
Diffstat (limited to 'service/pixelated/resources/auth.py')
-rw-r--r--service/pixelated/resources/auth.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/service/pixelated/resources/auth.py b/service/pixelated/resources/auth.py
index 66aac4e5..a9297b30 100644
--- a/service/pixelated/resources/auth.py
+++ b/service/pixelated/resources/auth.py
@@ -88,10 +88,6 @@ class SessionChecker(object):
class PixelatedRealm(object):
implements(portal.IRealm)
- def __init__(self, root_resource, anonymous_resource):
- self._root_resource = root_resource
- self._anonymous_resource = anonymous_resource
-
def requestAvatar(self, avatarId, mind, *interfaces):
if IResource in interfaces:
return IResource, avatarId, lambda: None