summaryrefslogtreecommitdiff
path: root/docs/narr/security.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/narr/security.rst')
-rw-r--r--docs/narr/security.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/narr/security.rst b/docs/narr/security.rst
index fb1ad3ee7..fa8a5d032 100644
--- a/docs/narr/security.rst
+++ b/docs/narr/security.rst
@@ -144,3 +144,17 @@ but otherwise acts the same as your model object.
You can of course supply ``__name__`` and ``__parent__`` attributes
explicitly on all of your model objects, and no location proxying will
be performed.
+
+Debugging Security Failures
+---------------------------
+
+If your application is allowing or denying access inappropriately (in
+your judgment), start your application under a shell using the
+``BFG_SECURITY_DEBUG`` environment variable. For example::
+
+ BFG_SECURITY_DEBUG=1 bin/paster serve myproject.ini
+
+When any authorization takes place, a message will be logged to the
+console about what ACE in which ACL permitted or denied the
+authorization based on authentication information.
+