Gau-Yi / google-api-java-client

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

OAuth 2.0 AccessTokenRequest's client_secret is not properly declared #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client (e.g. 1.3.1-alpha)? 1.3.1-alpha and dev

Java environment (e.g. Java 6, Android 2.3, App Engine 1.4.2)? N/A

Describe the problem.
The "client_secret" attribute in the class AccessTokenRequest is not properly 
declared:
http://code.google.com/p/google-api-java-client/source/browse/google-api-client/
src/com/google/api/client/auth/oauth2/AccessTokenRequest.java?r=f655a41df588474a
6e3887d6ba2db71709290ea6#253

How would you expect it to be fixed?
Should add this line before the attribute declaration:
@Key("client_secret")

Original issue reported on code.google.com by ala...@google.com on 5 Apr 2011 at 10:34

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 6 Apr 2011 at 2:15

GoogleCodeExporter commented 9 years ago
It intentionally doesn't have the @Key("client_secret") to support the use case 
of Basic Authentication.  See line 292.

Original comment by yan...@google.com on 6 Apr 2011 at 12:24