两条腿的 OAuth 和 Gmail Atom feed
我们正在尝试让 2-legged OAuth 与 Gmail Atom feed 一起使用。我们使用 John Kristian、Praveen Alavilli 和 Dirk Balfanz 贡献的 Java 库。 [http://oauth.net/code/] 而不是 GData 库。
我们知道我们有正确的 CONSUMER_KEY 和 CONSUMER_SECRET 等,因为它适用于联系人供稿 (http://www.google.com/m8/feeds/contacts/default/full)并且没有任何问题。然而,对于 Gmail Atom feed,它总是返回: HTTP/1.1 401 Unauthorized
有什么想法吗?我们应该尝试不同的 OAuth 框架还是问题出在 Google 方面?
We're trying to get 2-legged OAuth to work with the Gmail atom feed. We're using the Java library contributed by John Kristian, Praveen Alavilli and Dirk Balfanz. [http://oauth.net/code/] instead of the GData library.
We know we have the correct CONSUMER_KEY and CONSUMER_SECRET, etc. becuase it works with the Contacts feed (http://www.google.com/m8/feeds/contacts/default/full) and have no problems. However with Gmail atom feed it always returns: HTTP/1.1 401 Unauthorized
Any ideas? Should we try a different OAuth framework or does the problem lie on the Google side?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们认为它可以与 OAuth 库一起使用,但不能与 GData 库一起使用。
代码片段是:
We think we got it working with the OAuth libraries but not with the GData library.
Snippet of code is:
将 OAuth 数据放在授权标头中,而不是放在 URI 中。
Put the OAuth data in the Authorization header, not on the URI.