Hi, is there any summary for each option? I couldn't figure out which
one should replace 'authkit.form.authenticate.user.data' mentioned in
that wiki.
On Jul 21, 11:59 pm, Lee Connell <[EMAIL PROTECTED]> wrote:
> go into site-packages or where you installed authkit and go to
> "authkit/authenticate/__init__.py and there you will find
> _allowed_options.
>
> On Sat, 2007-07-21 at 15:02 +0000, Olli Wang wrote:
> > Hi, I was followed the "Geting Started With AuthKit"(http://
> > wiki.pylonshq.com/pages/viewpage.action?pageId=2392077), but is it
> > suitable for 0.3.0pre5?
>
> > I tried this simple example:
>
> > from authkit.authenticate import test_app, middleware
> > from paste.httpserver import serve
>
> > app_conf = {
> > 'authkit.setup.method': 'form, cookie',
> > 'authkit.cookie.secret': 'secret encryption string',
> > 'authkit.cookie.signoutpath': '/signout',
> > 'authkit.params.name': 'test',
> > 'authkit.form.authenticate.user.data': """
> > bob:apples
> > TIM:oranges
> > """
> > }
>
> > app = middleware(app, app_conf)
> > serve(app, port=8080, host='0.0.0.0')
>
> > But it doesn't work. I got traceback as this:
>
> > Traceback (most recent call last):
> > File "test_authkit.py", line 15, in <module>
> > app = middleware(test_app, app_conf)
> > File "c:\python25\lib\site-packages\authkit-0.3.0pre5-py2.5.egg
> > \authkit\authen
> > ticate\__init__.py", line 518, in middleware
> > 'authkit option'%_app2key(key, prefix))
> > authkit.authenticate.AuthKitConfigError: Option key
> > 'authkit.form.authenticate.u
> > ser.data' specified in config file is not a valid authkit option
>
> > So I removed the 'authkit.form.authenticate.user.data' option from
> > app_conf and tried again. This time I get another traceback:
>
> > Traceback (most recent call last):
> > File "test_authkit.py", line 11, in <module>
> > app = middleware(test_app, app_conf)
> > File "c:\python25\lib\site-packages\authkit-0.3.0pre5-py2.5.egg
> > \authkit\authen
> > ticate\__init__.py", line 518, in middleware
> > 'authkit option'%_app2key(key, prefix))
> > authkit.authenticate.AuthKitConfigError: Option key
> > 'authkit.cookie.signoutpath'
> > specified in config file is not a valid authkit option
>
> > Okay, I removed that option again, also I got another back said one
> > other option is error. So could anyone tell my what's going wrong? :(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---