1 #!/usr/bin/env python 2 3 from WebStack.Adapters.JavaServlet import deploy 4 from Simple import SimpleResource 5 from WebStack.Resources.LoginRedirect import LoginRedirectResource, LoginRedirectAuthenticator 6 7 # NOTE: Not sure if the resource should be maintained in a resource pool. 8 9 resource = LoginRedirectResource( 10 login_url="http://localhost:8080/LoginApp/", 11 app_url="http://localhost:8080", 12 resource=SimpleResource(), 13 authenticator=LoginRedirectAuthenticator(secret_key="horses"), 14 anonymous_parameter_name="anonymous", 15 logout_parameter_name="logout" 16 ) 17 18 SimpleWithLoginApp = deploy(resource) 19 20 # vim: tabstop=4 expandtab shiftwidth=4