1.1 --- a/examples/BaseHTTPRequestHandler/AuthApp.py Sun Feb 29 00:06:14 2004 +0000
1.2 +++ b/examples/BaseHTTPRequestHandler/AuthApp.py Sun Feb 29 00:06:25 2004 +0000
1.3 @@ -1,12 +1,12 @@
1.4 #!/usr/bin/env python
1.5
1.6 from WebStack.Adapters import BaseHTTPRequestHandler
1.7 -from Auth import AuthResource
1.8 +from Auth import AuthResource, AuthAuthenticator
1.9 import BaseHTTPServer
1.10
1.11 # Special magic incantation.
1.12
1.13 -handler = BaseHTTPRequestHandler.HandlerFactory(AuthResource())
1.14 +handler = BaseHTTPRequestHandler.HandlerFactory(AuthResource(), AuthAuthenticator())
1.15 address = ("", 8080)
1.16 server = BaseHTTPServer.HTTPServer(address, handler)
1.17 server.serve_forever()