summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/authorization.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-12-12 00:27:13 -0600
committerGitHub <noreply@github.com>2020-12-12 00:27:13 -0600
commitc261d2c92843b31d5e5394247b3c3aa8d89a08e1 (patch)
treea1dfc6642218964ffe634e967c72227e9c60d8d1 /docs/tutorials/wiki2/authorization.rst
parent6cf061e170039ff48e7f892f1176d1ab359e2001 (diff)
parent2ce552b73fc40bd35565be0e4599bf2189ea6e09 (diff)
downloadpyramid-c261d2c92843b31d5e5394247b3c3aa8d89a08e1.tar.gz
pyramid-c261d2c92843b31d5e5394247b3c3aa8d89a08e1.tar.bz2
pyramid-c261d2c92843b31d5e5394247b3c3aa8d89a08e1.zip
Merge pull request #3629 from luhn/wiki2-request-identity
Remove request.user from wiki2
Diffstat (limited to 'docs/tutorials/wiki2/authorization.rst')
-rw-r--r--docs/tutorials/wiki2/authorization.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst
index 38b9b7373..be3a09664 100644
--- a/docs/tutorials/wiki2/authorization.rst
+++ b/docs/tutorials/wiki2/authorization.rst
@@ -5,7 +5,7 @@ Adding authorization
====================
In the last chapter we built :term:`authentication` into our wiki. We also
-went one step further and used the ``request.user`` object to perform some
+went one step further and used the ``request.identity`` object to perform some
explicit :term:`authorization` checks. This is fine for a lot of applications,
but :app:`Pyramid` provides some facilities for cleaning this up and decoupling
the constraints from the view function itself.
@@ -24,7 +24,7 @@ We will implement access control with the following steps:
Add ACL support
---------------
-A :term:`principal` is a level of abstraction on top of the raw :term:`userid`
+A :term:`principal` is a level of abstraction on top of the raw :term:`identity`
that describes the user in terms of its capabilities, roles, or other
identifiers that are easier to generalize. The permissions are then written
against the principals without focusing on the exact user involved.