level12 / keg-auth

Robust authentication system for Keg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

breakage with flask-login==0.6.2

guruofgentoo opened this issue · comments

Not sure what changed here, but it seems like flask-login is retaining a reference to old session users even after they have been deleted. Generally, we expect that when we create a test app to log in (whether via AuthTestApp or using a plain one to test login view operation), we should have a fresh session to test with.

flask-login 0.6.2 was released to be compatible with flask/werkzeug 2.2. We need to do some work to have those compatible in keg anyway, so we can add this to the list.

FWIW this is the same root issue as level12/keg#90. Flask-login started to cache the user on flask.g.