Commits

David Larlet  committed 549a34c

Fix #5, add comments for the reuse of signatures in tests, thanks again @mohangk

  • Participants
  • Parent commits d057b38

Comments (0)

Files changed (1)

File oauth_provider/tests.py

 be able to access the Protected Resource anymore::
 
     >>> access_token.delete()
+    >>> # Note that an "Invalid signature" error will be raised here if the
+    >>> # token is not revoked by Jane because we reuse a previously used one.
     >>> parameters['oauth_signature'] = signature
     >>> parameters['oauth_nonce'] = 'yetanotheraccessresourcenonce'
     >>> response = c.get("/oauth/photo/", parameters)
 be able to access the Protected Resource anymore::
 
     >>> access_token.delete()
+    >>> # Note that an "Invalid signature" error will be raised here if the
+    >>> # token is not revoked by Jane because we reuse a previously used one.
     >>> parameters['oauth_signature'] = signature
     >>> parameters['oauth_nonce'] = 'yetanotheraccessresourcenonce'
     >>> response = c.get("/oauth/photo/", parameters)