Commit 8105cfe0 by Miles Richardson Committed by GitHub

Merge pull request #167 from ctrongminh/patch-2

Update the README with Session logout
parents 2d1fd9f2 1f5d4681
...@@ -724,6 +724,8 @@ token = u.sessionToken ...@@ -724,6 +724,8 @@ token = u.sessionToken
with SessionToken(token): with SessionToken(token):
collectedItem = CollectedItem.Query.get(type="Sword") # Get a collected item, Sword, that is protected by ACL collectedItem = CollectedItem.Query.get(type="Sword") # Get a collected item, Sword, that is protected by ACL
print collectedItem print collectedItem
u.logout()
~~~~~ ~~~~~
Assuming the CollectedItem 'Sword' is read-protected from the public by an ACL and is readable only by the user, SessionToken allows the user to bypass the ACL and get the 'Sword' item. Assuming the CollectedItem 'Sword' is read-protected from the public by an ACL and is readable only by the user, SessionToken allows the user to bypass the ACL and get the 'Sword' item.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment