manicoder / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

GOAuth2Request doesn't handling expired token correctly #713

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Login using the OAuth2 flow
2. Retrieve the AccessToken and RefreshToken
3. Wait for the AccessToken to expire.
4. Try to retrieve the list of Picasa Albums (using an AlbumQuery) (with both 
the AccessToken and the RefreshToken)
5. GOAuth2Request.Execute() doesn't handle the Forbidden HttpStatusCode 
correctly (doesn't try to refresh the AccessToken)

What is the expected output? What do you see instead?
GOAuth2Request.Execute() method should handle the Forbidden HttpStatusCode the 
same way it handles the Unauthorized code - by trying to refresh the 
AccessToken using the given RefreshToken

Original issue reported on code.google.com by ita...@gmail.com on 16 Mar 2015 at 8:48