DescriptionSupport credential store locking in the face of high concurrency
This change consists of changing the core Storage class to support locking. The OAuth2Credentials class is then changed to use this locking. It will check for newer versions of a credential before refreshing.
I also fixed up some comments, style and logging.
The one 'API' change is that OAuth2Credentials.set_store now takes a Storage object instead of a put method.
Patch Set 1 #Patch Set 2 : Fix some missing changes in client.py #Patch Set 3 : Update other storage implementations, fix naming style to match PEP 8. #
Total comments: 1
Patch Set 4 : Remove expiration based token refresh #
Total comments: 11
Patch Set 5 : Address comments from Joe #Patch Set 6 : Stop using the term "database". Also rename new store from locked_file to multistore_file. #
Total comments: 5
Patch Set 7 : Have command line helper exit with friendly messages instead of throwing exceptions. #Patch Set 8 : Fix appengine unit test. #
MessagesTotal messages: 13
|