summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2019-06-23 11:36:52 -0700
committerTheron Luhn <theron@luhn.com>2019-06-23 11:36:52 -0700
commitf2315b9cd94fd403f1030c3199bfc76c5982d55b (patch)
tree51bbb9ca7d0bd46d4f18d4ca905f93c12b85bfac /docs
parentf54cae02910f27e2ef7df224aa8fb7b9e1df5f99 (diff)
downloadpyramid-f2315b9cd94fd403f1030c3199bfc76c5982d55b.tar.gz
pyramid-f2315b9cd94fd403f1030c3199bfc76c5982d55b.tar.bz2
pyramid-f2315b9cd94fd403f1030c3199bfc76c5982d55b.zip
Use a table for policy => helper list.
Diffstat (limited to 'docs')
-rw-r--r--docs/whatsnew-2.0.rst30
1 files changed, 17 insertions, 13 deletions
diff --git a/docs/whatsnew-2.0.rst b/docs/whatsnew-2.0.rst
index c33f40206..a32801058 100644
--- a/docs/whatsnew-2.0.rst
+++ b/docs/whatsnew-2.0.rst
@@ -59,19 +59,23 @@ Pyramid does not provide any built-in security policies. Similiar
functionality of the authentication and authorization policies is now provided
by helpers, which can be utilized to easily implement your own security policy.
The functionality of the legacy authencation policies roughly correspond to the
-following helpers
-
-* :class:`pyramid.authentication.SessionAuthenticationPolicy`:
- :class:`pyramid.authentication.SessionAuthenticationHelper`
-* :class:`pyramid.authentication.AuthTktAuthenticationPolicy`:
- :class:`pyramid.authentication.AuthTktCookieHelper`
-* :class:`pyramid.authentication.BasicAuthAuthenticationPolicy`:
- Use :func:`pyramid.authentication.extract_http_basic_credentials` to retrieve
- credentials.
-* :class:`pyramid.authentication.RemoteUserAuthenticationPolicy`:
- ``REMOTE_USER`` can be accessed with ``request.environ.get('REMOTE_USER')``.
-* :class:`pyramid.authentication.RepozeWho1AuthenticationPolicy`:
- No equivalent.
+following helpers:
+
++----------------------------------------------------------------+-------------------------------------------------------------------+
+| Authentication Policy | Security Policy Helper |
++================================================================+===================================================================+
+| :class:`pyramid.authentication.SessionAuthenticationPolicy` | :class:`pyramid.authentication.SessionAuthenticationHelper` |
++----------------------------------------------------------------+-------------------------------------------------------------------+
+| :class:`pyramid.authentication.AuthTktAuthenticationPolicy` | :class:`pyramid.authentication.AuthTktCookieHelper` |
++----------------------------------------------------------------+-------------------------------------------------------------------+
+| :class:`pyramid.authentication.BasicAuthAuthenticationPolicy` | Use :func:`pyramid.authentication.extract_http_basic_credentials` |
+| | to retrieve credentials. |
++----------------------------------------------------------------+-------------------------------------------------------------------+
+| :class:`pyramid.authentication.RemoteUserAuthenticationPolicy` | ``REMOTE_USER`` can be accessed with |
+| | ``request.environ.get('REMOTE_USER')``. |
++----------------------------------------------------------------+-------------------------------------------------------------------+
+| :class:`pyramid.authentication.RepozeWho1AuthenticationPolicy` | No equivalent. |
++----------------------------------------------------------------+-------------------------------------------------------------------+
For further documentation on implementing security policies, see
:ref:`writing_security_policy`.