Changeset 5902 for main/waeup.sirp/trunk


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

Add a utility that will modify an existing PAU so that the applicants
specific authenticators and credentials plugins are added to that PAU.

File:
1 edited

Legend:

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

    r5818 r5902  
    3939    IJAMBApplicantSessionCredentials)
    4040from waeup.sirp.applicants import get_applicant_data
     41from waeup.sirp.interfaces import IAuthPluginUtility
    4142
    4243
     
    233234        return None
    234235
     236class ApplicantsAuthUtility(grok.GlobalUtility):
     237    """A global utility that sets up any PAU passed.
     238    """
     239    grok.provides(IAuthPluginUtility)
     240    grok.name('applicants_auth_setup')
     241
     242    def register(self, pau):
     243        print "\n\n\nSETUP this PAU: %s\n\n\n" % pau
     244        return
     245
     246    def unregister(self, pau):
     247        print "\n\n\nUNREGISTER the PAU: %s\n\n\n" % pau
     248   
     249   
    235250def principal_id(access_code):
    236251    """Get a principal ID for applicants.
Note: See TracChangeset for help on using the changeset viewer.