Changeset 5903 for main/waeup.sirp/trunk
- Timestamp:
- 30 Mar 2011, 17:35:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/authentication.py
r5902 r5903 241 241 242 242 def register(self, pau): 243 print "\n\n\nSETUP this PAU: %s\n\n\n" % pau 244 return 243 """Register our local applicants specific PAU components. 244 245 Applicants provider their own authentication system resulting 246 in a specialized credentials plugin and a specialized 247 authenticator plugin. 248 249 Here we tell a given PAU that these plugins exist and should 250 be consulted when trying to authenticate a user. 251 252 We stack our local plugins on top of the list, so that other 253 authentication mechanisms (the normal user authentication for 254 instance) have precedence and to avoid "account-shadowing". 255 """ 256 # The local credentials plugin is registered under the name 257 # 'applicant_credentials' (see above). 258 pau.credentialsPlugins.append('applicant_credentials') 259 # The local authenticator plugin is registered under the name 260 # 'applicants' (subject to change?) 261 pau.authenticatorPlugins.append('applicants') 262 return pau 245 263 246 264 def unregister(self, pau): 247 print "\n\n\nUNREGISTER the PAU: %s\n\n\n" %pau265 return pau 248 266 249 267
Note: See TracChangeset for help on using the changeset viewer.