Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(107)

Issue 6352088: oauth2client support for URL-encoded format of exchange token response (e.g. Facebook) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 12 months ago by alexv
Modified:
12 years, 12 months ago
Reviewers:
jcgregorio_google
CC:
google-api-python-client_googlegroups.com
Visibility:
Public.

Description

Filed as Issue 162 on code hosting: http://code.google.com/p/google-api-python-client/issues/detail?id=162

Patch Set 1 #

Total comments: 4

Patch Set 2 : A bit more sensitive name for response parsing method #

Patch Set 3 : A couple more tests for URL-encoded and JSON body parsing in case of a failure; #

Total comments: 4

Patch Set 4 : Catch-all with StandardError #

Total comments: 4

Patch Set 5 : Formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -11 lines) Patch
M oauth2client/client.py View 1 2 3 4 3 chunks +34 lines, -11 lines 0 comments Download
M tests/test_oauth2client.py View 1 2 3 chunks +58 lines, -0 lines 0 comments Download

Messages

Total messages: 9
jcgregorio_google
The file test_oauth2clicent.py seemed to disappear with the second upload. Please specify --rev to upload-diffs.py ...
12 years, 12 months ago (2012-07-09 20:15:06 UTC) #1
alexv
On 2012/07/09 20:15:06, jcgregorio_google wrote: > The file test_oauth2clicent.py seemed to disappear with the second ...
12 years, 12 months ago (2012-07-09 21:42:45 UTC) #2
alexv
http://codereview.appspot.com/6352088/diff/1/tests/test_oauth2client.py File tests/test_oauth2client.py (right): http://codereview.appspot.com/6352088/diff/1/tests/test_oauth2client.py#newcode282 tests/test_oauth2client.py:282: def test_urlencoded_expires(self): On 2012/07/09 20:15:06, jcgregorio_google wrote: > This ...
12 years, 12 months ago (2012-07-09 21:43:21 UTC) #3
alexv
http://codereview.appspot.com/6352088/#ps8001 http://codereview.appspot.com/6352088/diff/1/tests/test_oauth2client.py File tests/test_oauth2client.py (right): http://codereview.appspot.com/6352088/diff/1/tests/test_oauth2client.py#newcode288 tests/test_oauth2client.py:288: self.assertNotEqual(None, credentials.token_expiry) On 2012/07/09 20:15:06, jcgregorio_google wrote: > ...
12 years, 12 months ago (2012-07-09 21:53:33 UTC) #4
jcgregorio_google
http://codereview.appspot.com/6352088/diff/8001/oauth2client/client.py File oauth2client/client.py (right): http://codereview.appspot.com/6352088/diff/8001/oauth2client/client.py#newcode897 oauth2client/client.py:897: resp = None resp = {} http://codereview.appspot.com/6352088/diff/8001/oauth2client/client.py#newcode902 oauth2client/client.py:902: # ...
12 years, 12 months ago (2012-07-10 20:00:45 UTC) #5
alexv
TBR: http://codereview.appspot.com/6352088/#ps18001 http://codereview.appspot.com/6352088/diff/8001/oauth2client/client.py File oauth2client/client.py (right): http://codereview.appspot.com/6352088/diff/8001/oauth2client/client.py#newcode897 oauth2client/client.py:897: resp = None On 2012/07/10 20:00:45, jcgregorio_google ...
12 years, 12 months ago (2012-07-10 21:18:26 UTC) #6
jcgregorio_google
Very close, just nits now. http://codereview.appspot.com/6352088/diff/18001/oauth2client/client.py File oauth2client/client.py (right): http://codereview.appspot.com/6352088/diff/18001/oauth2client/client.py#newcode885 oauth2client/client.py:885: """ Reformat doc string ...
12 years, 12 months ago (2012-07-11 14:38:21 UTC) #7
alexv
http://codereview.appspot.com/6352088/diff/18001/oauth2client/client.py File oauth2client/client.py (right): http://codereview.appspot.com/6352088/diff/18001/oauth2client/client.py#newcode885 oauth2client/client.py:885: """ On 2012/07/11 14:38:21, jcgregorio_google wrote: > Reformat doc ...
12 years, 12 months ago (2012-07-11 14:58:52 UTC) #8
jcgregorio_google
12 years, 12 months ago (2012-07-11 15:07:08 UTC) #9
LGTM

Committed at
http://code.google.com/p/google-api-python-client/source/detail?r=1116dcf0085...

On 2012/07/11 14:58:52, crhyme wrote:
> http://codereview.appspot.com/6352088/diff/18001/oauth2client/client.py
> File oauth2client/client.py (right):
> 
>
http://codereview.appspot.com/6352088/diff/18001/oauth2client/client.py#newco...
> oauth2client/client.py:885: """
> On 2012/07/11 14:38:21, jcgregorio_google wrote:
> > Reformat doc string to look like:
> > 
> > """Parses response of an exchange token request. 
> > 
> > Most providers return JSON but some (e.g. Facebook) return a
> > url-encoded string.
> 
> Done.
> 
>
http://codereview.appspot.com/6352088/diff/18001/oauth2client/client.py#newco...
> oauth2client/client.py:894: content as a dictionary object. Note that the dict
> could be empty,
> On 2012/07/11 14:38:21, jcgregorio_google wrote:
> > Content
> 
> Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b