I wanted to try out the open_id authentication on a local application.
I think I got all the config variable names right.
snip from development.ini:
authkit.setup.enable = true
authkit.setup.method = openid
authkit.cookie.secret = somesecret
authkit.openid.store.type = file
authkit.openid.store.config = ""
authkit.openid.path.signedin = '/signedin'
authkit.openid.baseurl = http://127.0.0.1:5000
I then hung a @authorize(RemoteUser()) on the index of a controller to
trigger a 401. That is it; very simple setup.
When I browse to that page it *does* give me the open_id template from
authkit. I filled it in with my openid and on submit; it passes me to
my authentication server. (kinda cool). I was already logged in to
the service on another browser tab, so I was just asked if I 'trusted'
the referrer.
But when control is passed back to my app I get a KeyError when it
tries to set - paste.auth_tkt.set_user.
This particular error happened when I tried to use form or forward
too. In those efforts, I thought I was doing something wrong. But in
the case of open_id, I am not sure it is my code failing. I have very
little to do with the whole thing. (scary, but also kikda cool)
Here is the "Error Traceback"
===============================================
URL: http://127.0.0.1:5000/process?nonce=.....
Module pylons.error:225 in respond
<< app_iter = self.application(environ,detect_start_response)
Module authkit.authenticate:255 in __call__
<< return self.app(environ, start_response)
Module beaker.session:377 in __call__
<< response = self.wrap_app(environ,session_start_response)
Module authkit.authenticate.open_id:178 in __call__
<< response = self.process(environ,start_response)
Module authkit.authenticate.open_id:304 in process
<< environ['paste.auth_tkt.set_user'](username)
exceptions.KeyError: 'paste.auth_tkt.set_user'
===============================================
Does "paste.auth_tkt.set_user" give anyone else a hard time? Anyone
know what I may be doing wrong?
AuthKit-0.4.0dev_r88
Beaker-0.7.2
Paste-1.3
Pylons-0.9.5
Python-2.4
--
michael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---