summaryrefslogtreecommitdiff
path: root/docs/whatsnew-1.0.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/whatsnew-1.0.rst')
-rw-r--r--docs/whatsnew-1.0.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/whatsnew-1.0.rst b/docs/whatsnew-1.0.rst
index 5d7167908..91253b29b 100644
--- a/docs/whatsnew-1.0.rst
+++ b/docs/whatsnew-1.0.rst
@@ -412,7 +412,15 @@ Backwards Incompatibilities
cause problems for users of Pyramid with :mod:`repoze.who`, which
intercepts ``401 Unauthorized`` by default, but allows ``403 Forbidden`` to
pass through. Those deployments will need to configure :mod:`repoze.who`
- to also react to ``403 Forbidden``.
+ to also react to ``403 Forbidden``. To do so, use a repoze.who
+ ``challenge_decider`` that looks like this::
+
+ import zope.interface
+ from repoze.who.interfaces import IChallengeDecider
+
+ def challenge_decider(environ, status, headers):
+ return status.startswith('403') or status.startswith('401')
+ zope.interface.directlyProvides(challenge_decider, IChallengeDecider)
- The ``paster bfgshell`` command is now known as ``paster pshell``.