OAuth 示例 Google 工具箱应用程序中的身份验证错误
我遇到了问题,我不知道如何解决它。我四处搜寻,看看其他人是否也遇到这个问题,但我找不到与我的错误相关的任何内容。我正在使用 OAuthSample 示例应用程序。谷歌登录效果很好,但推特登录不行。我收到的错误是
Authentication error: Error Domain=com.google.HTTPStatus Code=401 "The operation couldn’t be completed. (com.google.HTTPStatus error 401.)"
我已正确填写 myConsumerKey 和 myConsumerSecret,所以我不明白交易是什么。模态下拉窗口甚至不会下拉并加载 url 页面,因此我可以输入 twitter 用户名和密码。
I've ran into a problem and I don't know how to fix it. I've searched around to see if other people are having this issue but I can't find anything relative to my error. I'm using the OAuthSample example app. The google login works great but not the twitter login. The error that I'm getting is
Authentication error: Error Domain=com.google.HTTPStatus Code=401 "The operation couldn’t be completed. (com.google.HTTPStatus error 401.)"
I've filled in myConsumerKey and myConsumerSecret correctly so I don't understand what the deal is. The modal drop down window will not even drop down and load the url page so I can put the twitter username and password.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经弄清楚了。您必须在 Twitter 设置中添加回调 URL,否则身份验证将失败。
I've figured it out. You have to put a callback url in the twitter settings or the authentication will fail.