summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/authorization
diff options
context:
space:
mode:
Diffstat (limited to 'docs/quick_tutorial/authorization')
-rw-r--r--docs/quick_tutorial/authorization/tutorial/security.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/quick_tutorial/authorization/tutorial/security.py b/docs/quick_tutorial/authorization/tutorial/security.py
index 53e3536fc..79e8cb295 100644
--- a/docs/quick_tutorial/authorization/tutorial/security.py
+++ b/docs/quick_tutorial/authorization/tutorial/security.py
@@ -26,13 +26,13 @@ class SecurityPolicy:
self.authtkt = AuthTktCookieHelper(secret=secret)
self.acl = ACLHelper()
- 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']