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

Ensuring that a new url is used after refreshing the credentials. #103

Merged
merged 1 commit into from
May 3, 2016

Conversation

ivannaranjo
Copy link
Contributor

The function GetUserinfo refreshes the credentials and retries once when the server returns BAD_REQUEST. The problem is that while it refreshes the credentials it does not re-creates the url with the newly obtained access_token, this means that the old URL that failed is used again in the retry.

This PR fixes this by recreating the URL after the credentials are refreshed. It is done by doing a small amount of refactoring so the code that creates the URL is in it's own private function.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 85.683% when pulling ccbe7aa on ivannaranjo:fixing_getuserinfo into dd2d897 on google:master.

@craigcitro craigcitro merged commit d6a3172 into google:master May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants