[Zope-CVS] CVS: Products/PluggableAuthService/plugins/tests -
ChallengeProtocolChooser.txt:1.1.2.2
Sidnei da Silva
sidnei at enfoldsystems.com
Tue Aug 16 16:31:50 EDT 2005
Update of /cvs-repository/Products/PluggableAuthService/plugins/tests
In directory cvs.zope.org:/tmp/cvs-serv20931/plugins/tests
Modified Files:
Tag: sidnei-challenge-protocol-chooser
ChallengeProtocolChooser.txt
Log Message:
- Don't break if IChallengeProtocolChoose is not a registered plugin type
=== Products/PluggableAuthService/plugins/tests/ChallengeProtocolChooser.txt 1.1.2.1 => 1.1.2.2 ===
--- Products/PluggableAuthService/plugins/tests/ChallengeProtocolChooser.txt:1.1.2.1 Sat Aug 13 00:34:33 2005
+++ Products/PluggableAuthService/plugins/tests/ChallengeProtocolChooser.txt Tue Aug 16 16:31:49 2005
@@ -25,7 +25,7 @@
>>> folder.acl_users.meta_type
'Pluggable Auth Service'
-
+
Now, we'll setup this PAS instance with what most people would get by
default, users and roles stored in ZODB with HTTP Basic auth.
@@ -76,7 +76,7 @@
>>> script = folder._getOb('test_script')
>>> script.write('return "Access Granted"')
- >>> script.manage_permission(permission_to_manage='View',
+ >>> script.manage_permission(permission_to_manage='View',
... roles=['Manager'], acquire=0)
Access the script through a simple ``GET`` request, simulating browser
@@ -159,7 +159,7 @@
Adding a Cookie Auth Helper now to test the correct behaviour of the
Challenge Protocol Helper.
-
+
>>> dispatcher = pas.manage_addProduct['PluggableAuthService']
>>> dispatcher.addCookieAuthHelper('cookie_auth',
... cookie_name='__ac')
@@ -209,7 +209,7 @@
However, not all WebDAV and XML-RPC clients understand the
redirect. Even worse, they will not be able to display the login form
-that is the target of this redirect.
+that is the target of this redirect.
For this reason we should disable the Cookie Auth Helper for
non-browser requests. In fact, we might only want plugins that
@@ -231,7 +231,7 @@
... 'XML-RPC': ['http'],
... 'Browser': []}
- >>> dispatcher.addChallengeProtocolChooserPlugin('chooser',
+ >>> dispatcher.addChallengeProtocolChooserPlugin('chooser',
... mapping=mapping)
>>> plugins.activatePlugin(IChallengeProtocolChooser, 'chooser')
More information about the Zope-CVS
mailing list