[Zope3-Users] NEWBIE: Using Pluggable Auth in Zope 3

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Sep 6 05:57:53 EDT 2006


On Wednesday 12 July 2006 03:30, Nick Howden wrote:
> However, I appear to be stumbling at the very first block of how to
> initialise my zope3 "product" using ZCML to include the pluggable auth
> modules. Is there a document anywhere that will guide me through the
> process (I've read the app.authenticate.README any although it was useful
> for writing the plugins I still don't know how to use them!)

ZCML, until z3c.baseregistry came around this weekend, was not able to 
configure local sites. zope.app.authentication is mainly written as local, 
persistent components.

You have a few options populating a local site manager:

1. So it via the ZMI. Go to a folder that is converted to a site (like the 
root folder) and click on "Manage Site". This will forward you to the site 
management are where you can add those sort of thing.

2. Write an event subscriber to some initial event that adds the setup via 
Python.

3. Write a configurator plugin for you site. See:

http://svn.zope.org/z3c.configurator/

In my projects I never setup such objects by hand, because it allows me to 
easily tear down and reinitiate the entire application. We use option 3. We 
also use z3c.sampledata for setting up test data, including principals and 
their grants.

http://svn.zope.org/z3c.sampledata/

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list