kulpa / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

OAuth flow broken on appengine sample #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The App Engine sample constructs the OAuth callback URL using the form 
"{application-id}.appspot.com".  This of course does not work when running on 
localhost.  Instead, the callback URL should be constructed using 
self.request.relative_url('/auth_return') so that it works for all environments.

Patch attached.

Original issue reported on code.google.com by willnorris@google.com on 9 Jan 2011 at 11:38

Attachments:

GoogleCodeExporter commented 9 years ago
I applied your patch in: 
https://code.google.com/p/google-api-python-client/source/detail?r=7f65e10aaf878
4146ba6427c584181d51a1fd90b

Original comment by a...@google.com on 10 Jan 2011 at 12:34