Skip to content

Commit

Permalink
Update custom authentication example. (#1575)
Browse files Browse the repository at this point in the history
From 3.0 scope is no longer held on self.
  • Loading branch information
yuvaraja2303 committed Jan 24, 2021
1 parent 227e0bd commit c371152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ query string and uses that:
# Look up user from query string (you should also do things like
# checking if it is a valid user ID, or if scope["user"] is already
# populated).
scope['user'] = await get_user(int(self.scope["query_string"]))
scope['user'] = await get_user(int(scope["query_string"]))
return await self.app(scope, receive, send)
Expand Down

0 comments on commit c371152

Please sign in to comment.