diff options
author | Roald de Vries <rdevries@thoughtworks.com> | 2016-11-29 15:10:19 +0100 |
---|---|---|
committer | Roald de Vries <rdevries@thoughtworks.com> | 2016-11-29 15:10:19 +0100 |
commit | 1a770c015364cae30dca5995cf562d3c44e11a4c (patch) | |
tree | 92020603d8f931130db549a8c1b2738237eb9ee2 | |
parent | 1ba7abb6098ffba76ab7ed85e491dc060c5c4520 (diff) |
pass resources to pixelated realm
-rw-r--r-- | service/pixelated/application.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/application.py b/service/pixelated/application.py index fa6568e6..8ec17bc5 100644 --- a/service/pixelated/application.py +++ b/service/pixelated/application.py @@ -155,10 +155,10 @@ 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) - realm = PixelatedRealm() + anonymous_resource = LoginResource(services_factory, provider, disclaimer_banner=banner, authenticator=authenticator) + realm = PixelatedRealm(root_resource, anonymous_resource) _portal = portal.Portal(realm, [session_checker, AllowAnonymousAccess()]) - anonymous_resource = LoginResource(services_factory, provider, disclaimer_banner=banner, authenticator=authenticator) protected_resource = PixelatedAuthSessionWrapper(_portal, root_resource, anonymous_resource) root_resource.initialize(provider, disclaimer_banner=banner, authenticator=authenticator) return protected_resource |