1.1 --- a/examples/Webware/AuthApp/__init__.py Sun Feb 29 00:19:51 2004 +0000
1.2 +++ b/examples/Webware/AuthApp/__init__.py Sun Feb 29 00:20:19 2004 +0000
1.3 @@ -7,19 +7,20 @@
1.4 __version__ = "0.1"
1.5
1.6 from WebStack.Adapters.Webware import WebStackServletFactory
1.7 -from Auth import AuthResource
1.8 +from Auth import AuthResource, AuthAuthenticator
1.9
1.10 # NOTE: Initialising a shared resource.
1.11
1.12 resource = AuthResource()
1.13 +authenticator = AuthAuthenticator()
1.14
1.15 def InstallInWebKit(appServer):
1.16 - global resource
1.17 + global resource, authenticator
1.18 app = appServer.application()
1.19
1.20 # NOTE: Allow .auth files only. Really, we'd like any kind of file, but
1.21 # NOTE: that would severely undermine the servlet factory concept.
1.22
1.23 - app.addServletFactory(WebStackServletFactory(app, resource, [".auth"]))
1.24 + app.addServletFactory(WebStackServletFactory(app, resource, [".auth"], authenticator))
1.25
1.26 # vim: tabstop=4 expandtab shiftwidth=4