Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GOAuth2Request doesn't handling expired token correctly #713

Open
GoogleCodeExporter opened this issue Sep 4, 2015 · 0 comments
Open

GOAuth2Request doesn't handling expired token correctly #713

GoogleCodeExporter opened this issue Sep 4, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant