Singly/hallway — pull request #830 by jparkrr (2013-03-03 22:55:17+00:00)
Title: make the google proxy refresh tokens

cc @tylerstalder

This makes the google proxy refresh access tokens. Note that it can't then save the new access token (I think this is true. Because of proxy vs. synclet differences) so it will have to always refresh. It should work because we always have a refresh_token and valid old access_token to work with.

@tylerstalder, I didn't retest file upload, but I shouldn't have changed any of that logic.

One way to make this slightly better would be to make the 'self' synclet also refresh the access token (and save it). I couldn't quite get the right incantation with the library I'm using, though.

I'm also aware we should consolidate token refreshing logic, but:
* None of the existing code worked this proxy
* I didn't want to update all of the google connectors right now