summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
authorZara Gebru <zgebru@thoughtworks.com>2016-12-06 15:46:33 +0100
committerZara Gebru <zgebru@thoughtworks.com>2016-12-06 15:46:33 +0100
commiteaf2019b6e977d1191e0ee12f694a02bb9612f83 (patch)
treefa8c7c9e5e99b613b8c4ef6247130782925edda8 /service/pixelated
parent206423b83b910308bd9c314af03cf82e9a821974 (diff)
clean up parameters of authsessionwrapper
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/application.py2
-rw-r--r--service/pixelated/resources/auth.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/service/pixelated/application.py b/service/pixelated/application.py
index da667820..73095da4 100644
--- a/service/pixelated/application.py
+++ b/service/pixelated/application.py
@@ -165,7 +165,7 @@ def set_up_protected_resources(root_resource, provider, services_factory, banner
realm = PixelatedRealm(root_resource, anonymous_resource)
_portal = portal.Portal(realm, [session_checker, AllowAnonymousAccess()])
- protected_resource = PixelatedAuthSessionWrapper(_portal, root_resource, anonymous_resource)
+ protected_resource = PixelatedAuthSessionWrapper(_portal)
anonymous_resource.initialize(provider, disclaimer_banner=banner, authenticator=authenticator)
root_resource.initialize(provider, disclaimer_banner=banner, authenticator=authenticator)
return protected_resource
diff --git a/service/pixelated/resources/auth.py b/service/pixelated/resources/auth.py
index 38045277..057eb053 100644
--- a/service/pixelated/resources/auth.py
+++ b/service/pixelated/resources/auth.py
@@ -83,11 +83,9 @@ class PixelatedAuthSessionWrapper(object):
isLeaf = False
- def __init__(self, portal, root_resource, anonymous_resource, credentialFactories=[]):
+ def __init__(self, portal, credentialFactories=[]):
self._portal = portal
self._credentialFactories = credentialFactories
- self._root_resource = root_resource
- self._anonymous_resource = anonymous_resource
def render(self, request):
raise UnsupportedMethod(())