关于新浪OAuth2.0 授权问题!!!!!!!!!!!!!!!!!!!!!!

隔壁老身 2014-12-24 03:43:22
App Key和App Secret都没写错,在SDK下单config.properties这个文件中也填入了对应的信息,OAuth4Code在这里测试的时候,浏览器打开了也获取到了code认证码,之后输入code就是不能获取到access token ,错误信息是:

https://api.weibo.com/oauth2/authorize?client_id=App Key&redirect_uri=http://weibo.com/54zqf&response_type=code
Hit enter when it's done.[Enter]:5579e1d701d9668ebc485c12072b465b
0 INFO [2014-12-24 15:34:38] code: 5579e1d701d9668ebc485c12072b465b
4 DEBUG [2014-12-24 15:34:38] Request:
4 DEBUG [2014-12-24 15:34:38] POSThttps://api.weibo.com/oauth2/access_token
737 DEBUG [2014-12-24 15:34:39] Response:
737 DEBUG [2014-12-24 15:34:39] https StatusCode:401
737 DEBUG [2014-12-24 15:34:39] Server:nginx/1.2.0
737 DEBUG [2014-12-24 15:34:39] Date:Wed, 24 Dec 2014 07:34:33 GMT
737 DEBUG [2014-12-24 15:34:39] Transfer-Encoding:chunked
737 DEBUG [2014-12-24 15:34:39] Connection:keep-alive
737 DEBUG [2014-12-24 15:34:39] Pragma:No-cache
737 DEBUG [2014-12-24 15:34:39] Cache-Control:no-cache
738 DEBUG [2014-12-24 15:34:39] Expires:Thu, 01 Jan 1970 00:00:00 GMT
738 DEBUG [2014-12-24 15:34:39] Api-Server-IP:10.73.89.46
739 WARN [2014-12-24 15:34:39] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
740 DEBUG [2014-12-24 15:34:39] {"error":"invalid_client","error_code":21324,"request":"/oauth2/access_token","error_uri":"/oauth2/access_token","error_description":"client_secret error."}

743 INFO [2014-12-24 15:34:39] Unable to get the access token.

不清楚是怎么回事。求解决。。。。
...全文
235 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
加勒比的船长 2016-08-04
  • 打赏
  • 举报
回复
同问,楼主有没有解决啊
  • 打赏
  • 举报
回复
我也遇到这个问题了,楼主解决没
nutch_learning 2015-05-20
  • 打赏
  • 举报
回复
为什么没有人回答?

80,360

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧