Twitter oauth配置丢失(Parse TwitterUtils)

问题描述 投票:0回答:1

没有得到任何有效的解决方案,用于将Twitter身份验证与解析服务器集成我已经阅读了几乎github上的所有解决方案并应用它但没有运气。更多信息我使用了ParseUI项目。

https://github.com/parse-community/ParseUI-Android

我使用了parse'com.parse提供的这个库:parsetwitterutils-android:1.10.6'来验证用户。但没有运气。通过互联网搜索后,我发现有些人告诉我们在index.js页面上添加以下代码。

oauth: {
  twitter: {
  consumer_key: "qweREbUdsfsdfsdfsdfsd4wIg9EX", // REQUIRED
  consumer_secret: "AZrUDjnEVUsdfsdfsdfsdfsdfsdfsdfxcpxBtM0X3" // REQUIRED
  },
  facebook: {
          appIds: "8489456465"
       }
  } 

之后我得到回应:

04-27 01:53:32.340 16920-17090/app.com.parse.example D/OkHttp: {"code":1,"error":"Twitter auth configuration missing"}
<-- END HTTP (55-byte body)
04-27 01:53:47.148 16920-17113/app.com.parse.example D/OkHttp: {"authData":{"twitter":{"consumer_key":"VdzzbGHfHgFhgFHGf4wIg9EX","auth_token":"157620898-qbODfHyHJKGHGJHGJHGJHGmF38LeJ2cd","screen_name":"blackjack","consumer_secret":"AZrUwerHJGJHGJHGJHGhgjhgZwJopxBtM0X3","id":"1554545698","auth_token_secret":"PK6IgEQMrszxcjhgjhgjhjhJHGrh1Ure8IGbuPX6H"}}}
--> END POST (319-byte body)
04-27 01:53:47.239 16920-17113/app.com.parse.example D/OkHttp: {"code":1,"error":"Twitter auth configuration missing"}
<-- END HTTP (55-byte body)
04-27 01:53:47.255 16920-16920/app.com.parse.example W/ParseLoginFragment: Twitter login failed, exception: com.parse.ParseRequest$ParseRequestException: Twitter auth configuration missing

还有:

04-27 16:31:33.705 4998-4998/com.parse.loginsample.basic     W/ParseLoginFragment: Twitter login failed, exception:     com.parse.ParseRequest$ParseRequestException: i/o failure

参考答案/讨论没有解决我的问题:

https://github.com/parse-community/parse-server/issues/973

Parse server twitter authentication: Twitter auth integrated but unable to create session to use on client side

Parse server open source Android Twitter Login is not working

android twitter parse-server
1个回答
1
投票

oauth选项已弃用,将在以后的版本中删除,请改用auth选项。

http://docs.parseplatform.org/parse-server/guide/#oauth-and-3rd-party-authentication

请参阅更改日志:

https://github.com/parse-community/parse-server/blob/master/CHANGELOG.md#230

例:

auth: {
  twitter: {
  consumer_key: "qweREbUdsfsdfsdfsdfsd4wIg9EX", // REQUIRED
  consumer_secret: "AZrUDjnEVUsdfsdfsdfsdfsdfsdfsdfxcpxBtM0X3" // REQUIRED
  },
  facebook: {
      appIds: "8489456465"
   }
} 
© www.soinside.com 2019 - 2024. All rights reserved.