[Twisted-Python] How to do basic authentication on twisted web

Chris Adams chris at stemcel.co.uk
Mon Aug 17 05:28:47 EDT 2009


Hi there,

I'm new to twisted, so please excuse the noobish question, but:

I'm using twisted-web on an openwrt computer, using busybox, and after
looking through the docs, I'm a little unclear about how to implement
something like apache's htpasswd style authentication.

Using apache, I'd do something like:

htpasswd -c passwrods admin topSecretPassword

What's the simplest way to add a simple check for a username and
password like this using twisted web?

Where possible, I'd like to keep all of this inside twisted rather
than rely on installing other binaries, that might not work within the
confined of a small openwrt install.

C

-- 
---
I'm currently only checking my email at 9am, midday and at 4pm.
If you need a response from me urgently, please call or text my
mobile, or contact me via Skype (chris.d.adams).
---
Chris Adams
Stemcel Studios
The Hub
5 Torrens Street
London
EC1V 1NQ

email: chris at stemcel.co.uk
web:  www.stemcel.co.uk
twitter:chris_d_adams
skype: chris.d.adams
mob: 07974 368 229
tel: 0207 558 8971



More information about the Twisted-Python mailing list