summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-11-09 17:11:16 -0500
committerChris McDonough <chrism@plope.com>2013-11-09 17:11:16 -0500
commit0dcd56c2c30863c6683c0cf442aa73dfdcd11b13 (patch)
tree0f5ad0df850b40990ef8d1bf7764d3422276a147 /CHANGES.txt
parentc126033112e468cdf858c7c1ad0bb29e7f57f520 (diff)
downloadpyramid-0dcd56c2c30863c6683c0cf442aa73dfdcd11b13.tar.gz
pyramid-0dcd56c2c30863c6683c0cf442aa73dfdcd11b13.tar.bz2
pyramid-0dcd56c2c30863c6683c0cf442aa73dfdcd11b13.zip
undeprecate remember/forget functions and remove remember_userid/forget_userid methods from request
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt14
1 files changed, 2 insertions, 12 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 20b7726c4..9f780fe45 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,23 +4,13 @@ Unreleased
Features
--------
-- Authentication and authorization APIs have been added as as methods of the
- request: ``request.has_permission``, ``request.forget_userid``, and
- ``request.remember_userid``.
+- An authorization API has been added as a method of the
+ request: ``request.has_permission``.
``request.has_permission`` is a method-based alternative to the
``pyramid.security.has_permission`` API and works exactly the same. The
older API is now deprecated.
- ``request.forget_userid`` and ``request.remember_userid`` are method-based
- alternatives to ``pyramid.security.forget`` and
- ``pyramid.security.remember``. These do not work exacly the same as their
- function counterparts, however. These methods automatically set the headers
- returned by the authentication policy on the response, whereas the older
- function-based APIs returned a sequence of headers and required the caller to
- set those headers. The older function-based API still works but is now
- deprecated.
-
- Property API attributes have been added to the request for easier access to
authentication data: ``request.authenticated_userid``,
``request.unauthenticated_userid``, and ``request.effective_principals``.