[Zope-CVS] CVS: Products/PluggableAuthService/interfaces -
plugins.py:1.5
Lennart Regebro
regebro at nuxeo.com
Tue Sep 14 06:06:57 EDT 2004
Update of /cvs-repository/Products/PluggableAuthService/interfaces
In directory cvs.zope.org:/tmp/cvs-serv11905/interfaces
Modified Files:
plugins.py
Log Message:
Changed the interface description. Maybe a bit wordy, but....
=== Products/PluggableAuthService/interfaces/plugins.py 1.4 => 1.5 ===
--- Products/PluggableAuthService/interfaces/plugins.py:1.4 Fri Aug 20 17:12:50 2004
+++ Products/PluggableAuthService/interfaces/plugins.py Tue Sep 14 06:06:56 2004
@@ -92,7 +92,23 @@
def challenge( request, response, **kw ):
- """ Scribble on the response in some appropriate way.
+ """ Raise an exception
+
+ With Zope 2 there are only two ways to initiate a challenge.
+
+ o raise Unauthorized, message
+
+ o raise Redirect, url
+
+ The default challenge response is the raise Unauthorized.
+ A challenge plugin is therefore only needed if a Redirect
+ (for example to a login-form) is desired.
+
+ The plugin gets request and response so that it can choose to
+ only challenge during certain circumstances. If the plugin
+ does not raise an exception, the next challenge plugin will
+ be called. If no plugins raise the exception, Unauthorized
+ will be raised.
"""
class ICredentialsUpdatePlugin( Interface ):
More information about the Zope-CVS
mailing list