# HG changeset patch # User paulb # Date 1078014019 0 # Node ID f170a33a8aa7e15581c833356b42c9d7c0cb4405 # Parent bbd3f4aae064ee16a1058b68eb970a019ab945ba [project @ 2004-02-29 00:20:18 by paulb] Added missing authenticator usage. diff -r bbd3f4aae064 -r f170a33a8aa7 examples/Webware/AuthApp/__init__.py --- a/examples/Webware/AuthApp/__init__.py Sun Feb 29 00:19:51 2004 +0000 +++ b/examples/Webware/AuthApp/__init__.py Sun Feb 29 00:20:19 2004 +0000 @@ -7,19 +7,20 @@ __version__ = "0.1" from WebStack.Adapters.Webware import WebStackServletFactory -from Auth import AuthResource +from Auth import AuthResource, AuthAuthenticator # NOTE: Initialising a shared resource. resource = AuthResource() +authenticator = AuthAuthenticator() def InstallInWebKit(appServer): - global resource + global resource, authenticator app = appServer.application() # NOTE: Allow .auth files only. Really, we'd like any kind of file, but # NOTE: that would severely undermine the servlet factory concept. - app.addServletFactory(WebStackServletFactory(app, resource, [".auth"])) + app.addServletFactory(WebStackServletFactory(app, resource, [".auth"], authenticator)) # vim: tabstop=4 expandtab shiftwidth=4 diff -r bbd3f4aae064 -r f170a33a8aa7 examples/Webware/AuthContext/__init__.py --- a/examples/Webware/AuthContext/__init__.py Sun Feb 29 00:19:51 2004 +0000 +++ b/examples/Webware/AuthContext/__init__.py Sun Feb 29 00:20:19 2004 +0000 @@ -5,11 +5,12 @@ """ from WebStack.Adapters.Webware import WebStackURLParser -from Auth import AuthResource +from Auth import AuthResource, AuthAuthenticator # NOTE: Initialising a shared resource. resource = AuthResource() -urlParser = WebStackURLParser(resource) +authenticator = AuthAuthenticator() +urlParser = WebStackURLParser(resource, authenticator) # vim: tabstop=4 expandtab shiftwidth=4