Had to make the following changes to authenticate/__init__.py to get
"setup" config to work -
--- /usr/lib/python2.5/site-packages/AuthKit-0.4.0dev_r88-py2.5.egg/
authkit/authenticate/__init__.py.orig 2007-07-06
00:37:23.377000000 +0100
+++ /usr/lib/python2.5/site-packages/AuthKit-0.4.0dev_r88-py2.5.egg/
authkit/authenticate/__init__.py 2007-07-06 00:37:34.648000000
+0100
@@ -364,7 +364,7 @@
all_conf = load_config(options, app_conf, prefix)
#if not all_conf.has_key('setup_method'):
- if not all_conf.has_key('setup_method'):
+ if not all_conf.has_key('setup.method'):
raise AuthKitConfigError('No authkit.setup.method was
specified')
# Check to see if middleware is disabled
Snip of configuration:
authkit.setup.method = forward,cookie
authkit.setup.enable = True
authkit.setup.intercept = 401, 403
Error before change:
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.0dev_r88-
py2.5.egg/authkit/authenticate/__init__.py", line 368, in middleware
raise AuthKitConfigError('No authkit.setup.method was specified')
authkit.permissions.AuthKitConfigError: No authkit.setup.method was
specified
This appears to be fixed now. I've added a config test so that we'll
hopefully catch these sorts of problems in future.
Cheers,
James