Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breakage with 'tools.sessions.on': True #1

Open
denvera opened this issue Apr 18, 2013 · 1 comment
Open

breakage with 'tools.sessions.on': True #1

denvera opened this issue Apr 18, 2013 · 1 comment

Comments

@denvera
Copy link

denvera commented Apr 18, 2013

When enabling sessions by setting tools.sessions.on to True, I could no longer login using lg_authority (I was using OpenID, with 'tools.lg_authority.site_registration':'external').

Changing:
user = cherrypy.session.get('auth', None)
to:
user = cherrypy.serving.sessionActual.get('auth')

in tools.py seemed to resolve this though.

@wwoods
Copy link
Owner

wwoods commented Apr 19, 2013

Hey, yeah, that's true. Why are you using tools.sessions though? lg_authority should be providing sessions for you. The reasoning behind this is that it uses a more robust backend (cherrypy's file-based sessions aren't very good for a number of locking reasons, and then since lg_authority already uses its own storage backend, it just kind of makes sense).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants