Ticket #59 (defect)
Opened 3 months ago
Last modified 2 weeks ago
lots of problems with pylons
Status: closed (fixed)
| Reported by: | patrick.valsecchi@camptocamp.com | Assigned to: | somebody |
|---|---|---|---|
| Priority: | blocker | Milestone: | |
| Component: | component1 | Version: | |
| Keywords: | Cc: | ||
I'm using:
- pylons 0.9.6
- SQLAlchemy 0.4.6
- routes 1.9.2
- authkit 0.4.1dev_r156
And I had to fix a lot of things to make all that work together:
- I had to integrate ticket #52 otherwise, it's impossible to debug. Why is this patch not committed?
- the "form, cookie" authentication kind of work if you ignore the error 500 returned
after you logged in and just press F5. Looks like auth is not behaving well with routes.
- with OpenID, there is no way to change the session_middleware config option. Fixed in the attached patch.
- the users info was not set with the OpenID method. Fixed in the attached patch.
- OpenID relies on beaker which is way down in the pylons middleware stack. So 'beaker.session' is not reachable. I had to add a beaker middleware in my middleware.py for it to work:
# AuthKit authentication import authkit.authenticate app = authkit.authenticate.middleware(app, app_conf) from beaker.middleware import SessionMiddleware app = SessionMiddleware(app, {})
Attachments
Change History
08/14/08 10:42:26: Modified by anonymous
08/14/08 10:42:42: Modified by anonymous
- attachment authKitOpenId.patch added.
11/09/08 18:12:54: Modified by thejimmyg
- status changed from new to closed.
- resolution set to fixed.

Let's add: