summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
authorRoald de Vries <rdevries@thoughtworks.com>2016-11-30 10:41:41 +0100
committerRoald de Vries <rdevries@thoughtworks.com>2016-11-30 10:41:41 +0100
commit4606a370f3abe73398097bb5ead898ee351e4a7a (patch)
tree430eb397575c4e866f4128e82bb1ea079cb3328e /service/pixelated
parentc10c6fb76f06e0cfc6f061a1bd9df14d689fb176 (diff)
use PublicRootResource for root url instead of LoginResource
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/application.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/pixelated/application.py b/service/pixelated/application.py
index 8ec17bc5..aee84cef 100644
--- a/service/pixelated/application.py
+++ b/service/pixelated/application.py
@@ -37,8 +37,7 @@ from pixelated.config.leap import initialize_leap_single_user, init_monkeypatche
from pixelated.config.services import ServicesFactory, SingleUserServicesFactory
from pixelated.config.site import PixelatedSite
from pixelated.resources.auth import PixelatedRealm, PixelatedAuthSessionWrapper, SessionChecker
-from pixelated.resources.login_resource import LoginResource
-from pixelated.resources.root_resource import RootResource
+from pixelated.resources.root_resource import PublicRootResource, RootResource
log = Logger()
@@ -155,11 +154,12 @@ def _setup_multi_user(args, root_resource, services_factory):
def set_up_protected_resources(root_resource, provider, services_factory, banner=None, authenticator=None):
session_checker = SessionChecker(services_factory)
- anonymous_resource = LoginResource(services_factory, provider, disclaimer_banner=banner, authenticator=authenticator)
+ anonymous_resource = PublicRootResource(services_factory)
realm = PixelatedRealm(root_resource, anonymous_resource)
_portal = portal.Portal(realm, [session_checker, AllowAnonymousAccess()])
protected_resource = PixelatedAuthSessionWrapper(_portal, root_resource, anonymous_resource)
+ anonymous_resource.initialize(provider, disclaimer_banner=banner, authenticator=authenticator)
root_resource.initialize(provider, disclaimer_banner=banner, authenticator=authenticator)
return protected_resource