From f2315b9cd94fd403f1030c3199bfc76c5982d55b Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Sun, 23 Jun 2019 11:36:52 -0700 Subject: Use a table for policy => helper list. --- docs/whatsnew-2.0.rst | 30 +++++++++++++++++------------- 1 file 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`. -- cgit v1.2.3