From 014b5ecedec76fd7bbade6c954adce94954bd171 Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Tue, 17 Dec 2019 11:33:18 -0800 Subject: Use `self.identify` instead of `request.authenticated_identity` --- docs/narr/security.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/narr/security.rst b/docs/narr/security.rst index 50eeab27b..ac64cba0a 100644 --- a/docs/narr/security.rst +++ b/docs/narr/security.rst @@ -78,7 +78,7 @@ A simple security policy might look like the following: def authenticated_userid(self, request): """ Return a string ID for the user. """ - identity = request.authenticated_identity + identity = self.identify(request) if identity is None: return None return string(identity.id) @@ -153,7 +153,7 @@ For example, our above security policy can leverage these helpers like so: def authenticated_userid(self, request): """ Return a string ID for the user. """ - identity = request.authenticated_identity + identity = self.identify(request) if identity is None: return None return str(identity.id) -- cgit v1.2.3