2005 - 08 - 03

Almost Authed

I've almost finished the WSGI Authentication. After getting a tip from Ian Bicking, It actually works now. I've been able to authenticate against a function and there is no template callable either. Instead, if the authenication fails, it redirects to another page using a 302 Found status code. The code for it is really small weighing in at about 70 lines for the actual authentication work. And I still have a bit more work I can do on it to clean it up and make it smaller and easier to read.

All that's left before I release the code is cookies and documentation. I'm working on the documentation at the moment but I wanted to get this out. Then cookies will just store an ID that I can check using the authentication function to see if the cookie stores the right information.

I'm also working on packaging a bunch of little WSGI middleware together into a toolbox. It'll be simple 200 line scripts that you can throw around any WSGI application to do tasks like authentication or sessions. It'll be kind of like a completely seperable Paste, another great project I've been following.

TC Out

[Permalink | Tags: [t], [t], [t], [t]]
Calendar
< August 2005 >
SuMoTuWeThFrSa
  1 2 3 4 5 6
7 8 910111213
14151617181920
21222324252627
28293031   
Hosted By:
Gushi Systems