App Engine Fix: Supply a context to oauth2 Export() #40
Labels
frozen due to age
Issues that have been left open but haven't received comments in more than six months will be closed
Improvement
This is what I have so far. It works, but as a Golang and App Engine noob, I'm guessing some else can come up with a nicer solution? oyvindsk@6e8230b
It's a pain to implement that callback as you an see in the comment.
Why:
The oauth2 module changed and it now handles the http.DefaultClient stuff in App Engine compatible way. So for oauth2 you no longer have to set http.DefaultClient and http.DefaultTransport as in Issue #27 . (goth using the default http.Client is another issue..)
But, you do have to supply a context.Context to oauth2 in Exchange() as in the above commit.
Related:
Pull #30
https://groups.google.com/forum/#!searchin/google-appengine-go/oauth2/google-appengine-go/5H2Ra85cu1M/e57iIRivEgAJ
The text was updated successfully, but these errors were encountered: