[Zope3-dev] HEADS UP: PAU (pluggable authentication) users

Jim Fulton jim at zope.com
Tue Mar 29 15:19:52 EST 2005


Garrett Smith wrote:
> Later today I'm going to checkin a major refactor of the pluggable
> authentication utility. The change greatly simplifies the end-user
> experience of configuring the PAU and will make custom plugins easier to
> write.

This introduces IAuthentication2.  This is meant to replace IAuthentication
eventually.  IAuthentication will be deprecated.  The problem is that
we now look up IAuthentication2 rather than IAuthentication.  This will
cause a serious backward compatibility problem for people using other
authentication utilities.  This will be the case for Zope X3.0 installations.
that upgrade to X3.1.

I don't think there were ever many auth services.  Perhaps the old pluggableauth
is the only one we need to worry about.  I suggest we do *one of*:

- Make the old pluggable authentication thing support IAthentication2.
   Unfortunately, we'd need a database fixup script that converted old
   IAuthentication registrations to use IAuthentication2.  We may already
   have code that converts old service registrations to utility registrations.
   Maybe this code could do this too.

   or

- Change the code that doesn't actually *need* the new logout method
   to do getUtility with IAuthentication, rather than IAuthentication2.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope3-dev mailing list