summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/authentication/tutorial
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/quick_tutorial/authentication/tutorial
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/quick_tutorial/authentication/tutorial')
-rw-r--r--docs/quick_tutorial/authentication/tutorial/security.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/quick_tutorial/authentication/tutorial/security.py b/docs/quick_tutorial/authentication/tutorial/security.py
index 8324000ed..020403c8b 100644
--- a/docs/quick_tutorial/authentication/tutorial/security.py
+++ b/docs/quick_tutorial/authentication/tutorial/security.py
@@ -19,13 +19,13 @@ class SecurityPolicy:
def __init__(self, secret):
self.authtkt = AuthTktCookieHelper(secret=secret)
- def authenticated_identity(self, request):
+ def identity(self, request):
identity = self.authtkt.identify(request)
if identity is not None and identity['userid'] in USERS:
return identity
def authenticated_userid(self, request):
- identity = self.authenticated_identity(request)
+ identity = self.identity(request)
if identity is not None:
return identity['userid']