Changeset 5898 for main/waeup.sirp/trunk


Ignore:
Timestamp:
30 Mar 2011, 16:17:43 (14 years ago)
Author:
uli
Message:

Add an interface for authentication plugins.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py

    r5676 r5898  
    295295           A standard Python logger for the plugins use.
    296296        """
     297
     298class IAuthPluginUtility(interface):
     299    """A component that cares for authentication setup at site creation.
     300
     301    Utilities providing this interface are looked up when a Pluggable
     302    Authentication Utility (PAU) for any
     303    :class:`waeup.sirp.app.University` instance is created and put
     304    into ZODB.
     305
     306    The setup-code then calls the `register` method of the utility and
     307    expects a modified (or unmodified) version of the PAU back.
     308
     309    This allows to define any authentication setup modifications by
     310    submodules or third-party modules/packages.
     311    """
     312
     313    def register(pau):
     314        """Register any plugins wanted to be in the PAU.
     315        """
     316
     317    def unregister(pau):
     318        """Unregister any plugins not wanted to be in the PAU.
     319        """
Note: See TracChangeset for help on using the changeset viewer.