Commit 1f5d4681 by ctrongminh Committed by GitHub

Update the README with Session logout

parent 2d1fd9f2
...@@ -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