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

Issue 6203063: refreshToken should throw a TokenResponseException for 4xx (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by rmistry
Modified:
11 years, 10 months ago
Reviewers:
yanivi
Base URL:
https://google-oauth-java-client.googlecode.com/hg/
Visibility:
Public.

Description

Credential.intercept should throw a TokenResponseException if refreshToken is false. Fix for http://code.google.com/p/google-oauth-java-client/issues/detail?id=42 : Failures in Access token requests for OAuth 2.0 assertion profile shouldn't be caught.

Patch Set 1 #

Patch Set 2 : Updating to only handle 4xx #

Patch Set 3 : Minor fix #

Patch Set 4 : Minor fix #

Total comments: 6

Patch Set 5 : Addressing code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -8 lines) Patch
M google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java View 1 2 3 4 5 chunks +20 lines, -1 line 0 comments Download
M google-oauth-client/src/test/java/com/google/api/client/auth/oauth2/CredentialTest.java View 1 2 3 4 4 chunks +38 lines, -7 lines 0 comments Download

Messages

Total messages: 8
rmistry
11 years, 11 months ago (2012-05-10 14:42:15 UTC) #1
yanivi
Please take a look at my comments from our internal e-mail thread. We may need ...
11 years, 11 months ago (2012-05-11 17:49:08 UTC) #2
rmistry
11 years, 11 months ago (2012-05-25 15:10:06 UTC) #3
rmistry
Modified Credential.refreshToken to only handle 4xx.
11 years, 11 months ago (2012-05-25 15:10:34 UTC) #4
yanivi
http://codereview.appspot.com/6203063/diff/7002/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java File google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java (right): http://codereview.appspot.com/6203063/diff/7002/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java#newcode499 google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java:499: public final boolean refreshToken() throws IOException { I think ...
11 years, 10 months ago (2012-06-05 21:05:21 UTC) #5
yanivi
http://codereview.appspot.com/6203063/diff/7002/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java File google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java (right): http://codereview.appspot.com/6203063/diff/7002/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java#newcode499 google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java:499: public final boolean refreshToken() throws IOException { On 2012/06/05 ...
11 years, 10 months ago (2012-06-05 21:05:49 UTC) #6
rmistry
http://codereview.appspot.com/6203063/diff/7002/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java File google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java (right): http://codereview.appspot.com/6203063/diff/7002/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java#newcode499 google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java:499: public final boolean refreshToken() throws IOException { On 2012/06/05 ...
11 years, 10 months ago (2012-06-06 13:40:25 UTC) #7
yanivi
11 years, 10 months ago (2012-06-06 16:08:10 UTC) #8
LGTM
Sign in to reply to this message.

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