Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install zope.app.pluggableauth

How to install zope.app.pluggableauth

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install zope.app.pluggableauth
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
3.4.0 Available View build log
Windows (64-bit)
3.4.0 Available View build log
Mac OS X (10.5+)
3.4.0 Available View build log
Linux (32-bit)
3.4.0 Available View build log
Linux (64-bit)
3.4.0 Available View build log
ZPL 2.1
Lastest release
version 3.4.0 on Jan 5th, 2011

This package provides the original implementation of the pluggable authentication utility. It has been superceded by zope.app.authentication.

Detailed Dcoumentation

New Authentication Service Design

The current implementation will be replaced. The following is a design I came up with together with Jim Fulton. -- itamar

Note that this design is implemented (in some form) by the pluggable auth service. This document needs to be updated to reflect the final implementation.

Design notes for new AuthenticationService

The service contains a list of user sources. They implement interfaces, starting with:

System Message: WARNING/2 (<string>, line 29)

Literal block expected; none found.

class IUserPassUserSource: """Authenticate using username and password."""

def authenticate(username, password): "Returns boolean saying if such username/password pair exists"

class IDigestSupportingUserSource(IUserPassUserSource): """Allow fetching password, which is required by digest auth methods"""

def getPassword(username): "Return password for username"

etc. Probably there will be others as well, for dealing with certificate authentication and what not. Probably we need to expand above interfaces to deal with principal titles and descriptions, and so on.

A login method (cookie auth, HTTP basic auth, digest auth, FTP auth), is registered as a view on one of the above interfaces.

System Message: WARNING/2 (<string>, line 52)

Literal block expected; none found.

class ILoginMethodView:

def authenticate(): """Return principal for request, or None."""

def unauthorized(): """Tell request that a login is required."""

The authentication service is then implemented something like this:

System Message: WARNING/2 (<string>, line 64)

Literal block expected; none found.

class AuthenticationService:

def authenticate(self, request): for us in self.userSources: loginView = getView(self, us, "login", request) principal = loginView.authenticate() if principal is not None: return principal

def unauthorized(self, request): loginView = getView(self, self.userSources[0], request) loginView.unauthorized()


3.4.0 (2007-10-25)

  • Initial release independent of the main Zope tree.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.