2 Mar
2004
2 Mar
'04
5:02 p.m.
I need basic authentication in twisted.web for an XMLRPC server. After reading the mailing list, the documentation and the code, I came up with the following solution. Since I'm rather new to twisted web, it would be nice if someone could comment on this code. Perhaps it is helpful as an example for others solving the same problem or trying to understand twisted.web and twisted.cred. Short usage instruction: Save the code to basicauth.py Start the server: twistd -noy basicauth.py http://localhost:8080/ will show the file "basicauth.py" after authenticating with user "bob" and password "123" By the way, twisted is fantastic. Franz-Josef Grosch -- Tenovis Comergo - Applications