Change to AuthKit setup.enable behaviour

0 views
Skip to first unread message

James Gardner

unread,
Jun 14, 2008, 10:03:27 AM6/14/08
to AuthKit, pylons-...@googlegroups.com
Hi all,

I've just checked in some code to the trunk which changes the
behaviour of the setup.enable option to AuthKit.

If you specify:

setup.enable = False

in a config file it used to disable the AuthKit middleware. It now
also disables all the authorization adaptors too. This is useful if
you want to run test suites on the code itself without having to fake
all the authentication and authorization set up.

I've also added a setup.fakeuser option which sets the REMOTE_USER
variable so that tests can be run as if a particular user is signed
in.

There are two related examples here:

http://authkit.org/svn/AuthKit/trunk/examples/authorize.py
http://authkit.org/svn/AuthKit/trunk/examples/authorize2.py

This new functionality hasn't been widely tested yet so if you spot
any problems please let me know.

Cheers,

James
Reply all
Reply to author
Forward
0 new messages