[Zope] exUserFolder with MySQL and cookie authentication
Chris Withers
chrisw@nipltd.com
Thu, 27 Feb 2003 13:37:08 +0000
Tom Emerson wrote:
>>>I am running Zope 2.6.0 with XUF 0.10.10, and would like to use the
>>>MySQL authentication source with cookie authentication. Unfortunately
>>>it does not work: attempting to access a protected resource with the
>>>acl_users so configured results in:
>>
>>I'd recommend trying SimpleUserFolder instead...
>>
>>http://www.zope.org/Members/NIP/SimpleUserFolder
>
> i took a look at SimpleUserFolder, but it didn't look like it was a
> dropin replacement for the XUF functionality I am looking for. Am I
> missing something?
No, it's not a drop-in replacement, but it's much easier to get it to do exactly
what you want. In your case, You'd need to:
1. Add your DB connection
2. Add your SUF
3. Write one ZSQL method
4. Add a CookieCrumbler* object to enable cookie authentication.
5. Customise your login form.
cheers,
Chris
* http://hathaway.freezope.org/Software/CookieCrumbler