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
2.1 --- a/examples/Webware/AuthContext/__init__.py Sun Feb 29 00:19:51 2004 +0000
2.2 +++ b/examples/Webware/AuthContext/__init__.py Sun Feb 29 00:20:19 2004 +0000
2.3 @@ -5,11 +5,12 @@
2.4 """
2.5
2.6 from WebStack.Adapters.Webware import WebStackURLParser
2.7 -from Auth import AuthResource
2.8 +from Auth import AuthResource, AuthAuthenticator
2.9
2.10 # NOTE: Initialising a shared resource.
2.11
2.12 resource = AuthResource()
2.13 -urlParser = WebStackURLParser(resource)
2.14 +authenticator = AuthAuthenticator()
2.15 +urlParser = WebStackURLParser(resource, authenticator)
2.16
2.17 # vim: tabstop=4 expandtab shiftwidth=4