summaryrefslogtreecommitdiff
path: root/service/pixelated/application.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 17:47:01 -0300
commitcdd291f43689275409157d3cfd8d7e84fcd63f7d (patch)
treec29c6bb7aee89b3d0cb043296174daaa051c86e9 /service/pixelated/application.py
parent17bffc43635b2b250beb6eaddd77db87a831370c (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/application.py')
-rw-r--r--service/pixelated/application.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/application.py b/service/pixelated/application.py
index 15155386..7e83299a 100644
--- a/service/pixelated/application.py
+++ b/service/pixelated/application.py
@@ -174,7 +174,7 @@ def set_up_protected_resources(root_resource, provider, services_factory, checke
session_checker = SessionChecker(services_factory)
anonymous_resource = LoginResource(services_factory, disclaimer_banner=banner)
- realm = PixelatedRealm(root_resource, anonymous_resource)
+ realm = PixelatedRealm()
_portal = portal.Portal(realm, [checker, session_checker, AllowAnonymousAccess()])
protected_resource = PixelatedAuthSessionWrapper(_portal, root_resource, anonymous_resource, [])