summaryrefslogtreecommitdiff
path: root/docs/whatsnew-2.0.rst
diff options
context:
space:
mode:
authorÉric Araujo <earaujo@caravan.coop>2019-12-14 13:32:07 -0500
committerÉric Araujo <earaujo@caravan.coop>2019-12-14 13:32:07 -0500
commit0168300b0da3c79e05ec87aa777e04674a86cebb (patch)
tree4e1f38841af1e6f8fd20b4e536ddbe946c294911 /docs/whatsnew-2.0.rst
parent4a46827769bbe181070a74927aa4e988a4cc3112 (diff)
downloadpyramid-0168300b0da3c79e05ec87aa777e04674a86cebb.tar.gz
pyramid-0168300b0da3c79e05ec87aa777e04674a86cebb.tar.bz2
pyramid-0168300b0da3c79e05ec87aa777e04674a86cebb.zip
start reworking security policy
Diffstat (limited to 'docs/whatsnew-2.0.rst')
-rw-r--r--docs/whatsnew-2.0.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/whatsnew-2.0.rst b/docs/whatsnew-2.0.rst
index bf1554a27..4448e0f69 100644
--- a/docs/whatsnew-2.0.rst
+++ b/docs/whatsnew-2.0.rst
@@ -44,10 +44,12 @@ The new security policy adds the concept of an :term:`identity`, which is an
object representing the user associated with the current request. The identity
can be accessed via :attr:`pyramid.request.Request.authenticated_identity`.
The object can be of any shape, such as a simple ID string or an ORM object,
-but should implement a ``__str__`` method that returns a string identifying the
-current user, e.g. the ID of the user object in a database. The string
-representation is return as
-:attr:`pyramid.request.Request.authenticated_userid`.
+and should represent an active user.
+
+As in previous version, the property :attr:`pyramid.request.Request.authenticated_userid`
+can be used to get a string identifying the current user, for example
+the ID of the user object in a database. The value is obtained from the
+security policy.
(:attr:`pyramid.request.Request.unauthenticated_userid` has been deprecated.)
The concept of :term:`principals <principal>` has been removed; the