[Zope-dev] Authenticating with acl_users

Dieter Maurer dieter@handshake.de
Mon, 10 Mar 2003 00:36:25 +0100


Sondre R=F8njom wrote at 2003-3-8 18:30 +0100:
 > I'm creating a python product - which needs to be authenticated; and I=
=20
 > dont want to use any products that does not come with a clean Zope ins=
tall=20
 > - so I user Simple User Folder and define two roles admin user and=20
 > ordinary user. I just want a user to login via login form, check usern=
ame=20
 > and password with the acl_users user list and set the user to=20
 > AUTHENTICATED_USER if username and password is correct. Actually I jus=
t=20
 > want to access the methods which the pop-up authenticator use when one=
=20
 > does /manage.  To me it looks like validate() from AccessControl/User.=
py does this for you, but Im not=20
 > sure how to use the method. =20

Usually, you just protect the methods of your product by permissions
and let Zope do everything else.


Dieter