[Zope-CVS] CVS: Products/PluggableAuthService - PluggableAuthService.py:1.25

Jens Vagelpohl jens at dataflake.org
Sat Nov 20 13:44:43 EST 2004


Update of /cvs-repository/Products/PluggableAuthService
In directory cvs.zope.org:/tmp/cvs-serv2643

Modified Files:
	PluggableAuthService.py 
Log Message:
- Enabled the usage of the CookieAuthHelper login screen functionality
  without actually using the CookieAuthHelper to maintain the
  credentials store in its own auth cookie by ensuring that only
  active updateCredentials plugins are informed about a successful
  login so they can store the credentials.


=== Products/PluggableAuthService/PluggableAuthService.py 1.24 => 1.25 ===
--- Products/PluggableAuthService/PluggableAuthService.py:1.24	Tue Nov  9 16:34:02 2004
+++ Products/PluggableAuthService/PluggableAuthService.py	Sat Nov 20 13:44:13 2004
@@ -1192,6 +1192,24 @@
         """
         return True
 
+    security.declarePrivate('updateCredentials')
+    def updateCredentials(self, request, response, login, new_password):
+        """Central updateCredentials method
+
+        This method is needed for cases where the credentials storage and
+        the credentials extraction is handled by different plugins. Example
+        case would be if the CookieAuthHelper is used as a Challenge and
+        Extraction plugin only to take advantage of the login page feature
+        but the credentials are not stored in the CookieAuthHelper cookie
+        but somewhere else, like in a Session.
+        """
+        plugins = self._getOb('plugins')
+        cred_updaters = plugins.listPlugins(ICredentialsUpdatePlugin)
+
+        for updater_id, updater in cred_updaters:
+            updater.updateCredentials(request, response, login, new_password)
+
+
 InitializeClass( PluggableAuthService )
 
 _PLUGIN_TYPE_INFO = (



More information about the Zope-CVS mailing list