From ab80ac7996bf792ddf3fbcce639e4b6714b401e6 Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Tue, 13 Oct 2020 23:08:00 -0700 Subject: Rename `ISecurityPolicy.authenticated_identity` to `identity` --- docs/quick_tutorial/authorization/tutorial/security.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/quick_tutorial/authorization') 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'] -- cgit v1.2.3