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 dolmen.authentication

How to install dolmen.authentication

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install dolmen.authentication
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.3 Available View build log
0.2 Available View build log
Windows (64-bit)
0.3 Available View build log
0.2 Available View build log
Mac OS X (10.5+)
0.3 Available View build log
0.2 Available View build log
Linux (32-bit)
0.3 Available View build log
0.2 Available View build log
Linux (64-bit)
0.3 Available View build log
0.2 Available View build log
Lastest release
version 0.3 on Jan 19th, 2012

Sitting on the top the zope.pluggableauth package, dolmen.authentication extends it to add reusable component descriptions and implementations.


dolmen.authentication provides interfaces and components:

>>> import dolmen.authentication
>>> from dolmen.authentication import IAuthenticationInterfaces
>>> from dolmen.authentication import IAuthenticationEvents
>>> from dolmen.authentication import IAuthenticationAPI

>>> IAuthenticationAPI.isOrExtends(IAuthenticationInterfaces)

>>> IAuthenticationAPI.isOrExtends(IAuthenticationEvents)

>>> from zope.interface.verify import verifyObject
>>> verifyObject(IAuthenticationAPI, dolmen.authentication)

Descriptive interfaces

dolmen.authentication provides a set of base interfaces that can be used to normalize an authentication system:

>>> print IAuthenticationInterfaces.__doc__
This interface describes and exposes the meaningful interfaces
of the authentication module.

>>> interfaceDescription(IAuthenticationInterfaces)
IPrincipalFolder: A container specialized in storing principal representations.
IAccountStatus: Abstraction component allowing to check the status of a principal.
IPrincipal: A principal representation, directly inheriting from zope.security IPrincipal, but redefining several fields for a user-friendly form display.
IGroup: A logical grouping of principals. This component is an IPrincipal itself.
IPasswordProtected: This interface defines any component protected by a password
IPasswordChecker: Abstraction component in charge of resolving a principal'scredentials.

>>> IAuthenticationInterfaces.providedBy(dolmen.authentication.interfaces)

>>> verifyObject(IAuthenticationInterfaces, dolmen.authentication.interfaces)

Events interfaces and implementations

dolmen.authentication provides a set of basic events that can be used and declined, in order to handle and trace principals' lifecycles:

>>> print IAuthenticationEvents.__doc__
This interface describes and exposes the meaningful events
descriptions and components of the authentication module.

>>> interfaceDescription(IAuthenticationEvents)
IUserLoggedOutEvent: IObjectEvent extending event : a user has logged out.
IUserLoggedInEvent: IObjectEvent extending event : a user has logged in.
UserLogoutEvent: An IUserLoggedOutEvent implementation.
UserLoginEvent: An IUserLoggedInEvent implementation.

>>> IAuthenticationEvents.providedBy(dolmen.authentication.events)

>>> verifyObject(IAuthenticationEvents, dolmen.authentication.events)


0.3 (2012-01-17)
  • Updates on code to fit last changes in the Dolmen/Grok stack.
0.2 (2010-05-29)
  • the LocatablePrincipalInfo adapter now implements _and_ provides the IPrincipalInfo interface. This allows the adapter to be used in the AuthenticatedPrincipalFactory adaptation.
0.1 (2010-03-26)
  • Initial release.

Subscribe to package updates

Last updated Jan 19th, 2012

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.