I am in the middle of migrating from an old Zope2/Python2 server to the latest Zope5/Python3 and am having an issue due to SimpleUserFolder and CookieCrumbler no longer being available as they once were. I know I can install Products.CMFCore and get a new version of CookieCrumbler, but it's SimpleUserFolder that is really causing the issue.
We have all of our usernames/password stored in a PostgreSQL database and had a python script that would return the info through a modded SimpleUserFolder.py file. This way, when logging in, not only would it check against Zope users, but it would also auth against the users in the database.
This new version of CookieCrumbler doesn't really provide all the functionality I need like the old one did, and since SimpleUserFolder doesn't exist anymore, I can't mod a script to perform the same functions.
I tried installing Products.CMFCore in order to get CookieCrumbler, but this new version doesn't have all of the same options such as specifying the Login Page ID, Logout Page ID, and Not Authorized ID. Plus, even if I could mod CookieCrumbler.py to provide these extra options, I still don't have a way to call to the python script which in turn calls to the database and allows users to login.
I know I've written a lot but I wanted to be very clear on the situation.
Here's an even simpler explanation of the workflow I need:
- User visits the login page
- User enters their username and password
- The system authenticates the user again the user accounts in the PGSQL database and either successfully logs them in or says not auth'd
- The user is also given a cookie with specific variables (name, password, etc.) so that when they are logged in they are only allowed to access the portions of the site available to them
Would love some help with this. Thanks in advance.