summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2019-12-30 13:29:25 -0600
committerMichael Merickel <michael@merickel.org>2019-12-30 13:29:25 -0600
commit25439c2dbd4ff971e2a32ac96fc893de0bdcefd3 (patch)
tree373621fc7f9e1239aa92782ee8fd733c3a512e1b /docs/quick_tutorial
parentbd8f73be18f8f54daff34debd976a4b81be886aa (diff)
downloadpyramid-25439c2dbd4ff971e2a32ac96fc893de0bdcefd3.tar.gz
pyramid-25439c2dbd4ff971e2a32ac96fc893de0bdcefd3.tar.bz2
pyramid-25439c2dbd4ff971e2a32ac96fc893de0bdcefd3.zip
rename identify(request) to authenticated_identity(request)
Diffstat (limited to 'docs/quick_tutorial')
-rw-r--r--docs/quick_tutorial/authentication/tutorial/security.py4
-rw-r--r--docs/quick_tutorial/authorization/tutorial/security.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/quick_tutorial/authentication/tutorial/security.py b/docs/quick_tutorial/authentication/tutorial/security.py
index acec06e7a..e8d323ea7 100644
--- a/docs/quick_tutorial/authentication/tutorial/security.py
+++ b/docs/quick_tutorial/authentication/tutorial/security.py
@@ -22,13 +22,13 @@ class SecurityPolicy:
hashalg='sha512',
)
- def identify(self, request):
+ def authenticated_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.identify(request)
+ identity = self.authenticated_identity(request)
if identity is not None:
return identity['userid']
diff --git a/docs/quick_tutorial/authorization/tutorial/security.py b/docs/quick_tutorial/authorization/tutorial/security.py
index a968f680d..a004a20f2 100644
--- a/docs/quick_tutorial/authorization/tutorial/security.py
+++ b/docs/quick_tutorial/authorization/tutorial/security.py
@@ -26,13 +26,13 @@ class SecurityPolicy:
)
self.acl = ACLHelper()
- def identify(self, request):
+ def authenticated_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.identify(request)
+ identity = self.authenticated_identity(request)
if identity is not None:
return identity['userid']