summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/authentication.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-11-01 18:15:49 -0600
committerGitHub <noreply@github.com>2020-11-01 18:15:49 -0600
commit68a6cb1dba7944f1e214ca62ce700e3f7ddf618d (patch)
treea1d646c7feefb9a28347b9826829d4ad59730c46 /docs/tutorials/wiki2/authentication.rst
parentc6772eadc18056b5eed90f6a694e53579ba403a4 (diff)
parent139462d451a1c35679b464690953333dd95389a1 (diff)
downloadpyramid-68a6cb1dba7944f1e214ca62ce700e3f7ddf618d.tar.gz
pyramid-68a6cb1dba7944f1e214ca62ce700e3f7ddf618d.tar.bz2
pyramid-68a6cb1dba7944f1e214ca62ce700e3f7ddf618d.zip
Merge pull request #3620 from luhn/identity-rename
Rename `ISecurityPolicy.authenticated_identity` to `identity`
Diffstat (limited to 'docs/tutorials/wiki2/authentication.rst')
-rw-r--r--docs/tutorials/wiki2/authentication.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorials/wiki2/authentication.rst b/docs/tutorials/wiki2/authentication.rst
index 5519a967e..4d8723176 100644
--- a/docs/tutorials/wiki2/authentication.rst
+++ b/docs/tutorials/wiki2/authentication.rst
@@ -64,7 +64,7 @@ Identifying the current user is done in a few steps:
#. The result is stored in the ``identity_cache`` which ensures that subsequent invocations return the same identity object for the request.
-Finally, :attr:`pyramid.request.Request.authenticated_identity` contains either ``None`` or a ``tutorial.models.User`` instance and that value is aliased to ``request.user`` for convenience in our application.
+Finally, :attr:`pyramid.request.Request.identity` contains either ``None`` or a ``tutorial.models.User`` instance and that value is aliased to ``request.user`` for convenience in our application.
Note the usage of the ``identity_cache`` is optional, but it has several advantages in most scenarios: