用于使用 Twitter 登录 (OAuth) 的 SignPost 或 Twitter4j?

发布于 2024-09-30 06:08:29 字数 211 浏览 0 评论 0原文

我阅读了很多有关路标的内容,然后回到 Twitter4J,当不需要 OAuth 时,我用 Twitter4J 创建了我的 Twitter 应用程序。

我现在很困惑是否应该使用路标或 Twitter4J 的 OAuth 身份验证方法。

我已经读到 Twitter4J 本身使用 OAuth 的路标,但仍然不确定我应该做出的选择。

请协助。

多谢!

I read a lot about signpost, and then went back to Twitter4J with which I have created my twitter applications when OAuth wasn't necessary.

I am now confused whether I should use signpost or Twitter4J's method of OAuth authentication.

I have read that Twitter4J itself uses signpost for OAuth, still am not sure about the choice that I should make.

Kindly assist.

Thanks a lot!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

寂寞陪衬 2024-10-07 06:08:29

我正在寻找这个问题的答案,因为:

  • 如果我使用 SignPost,我可以让“使用 Twitter 登录”工作
  • 如果我使用了 Twitter4J,那么我必须向用户询问他的 uid/pass

虽然我想仅使用 Twitter4J。

不管怎样,我在这两者之间设计了一种方法,使用 Twitter4J 来实现“用 Twitter 登录”。

I was looking for an answer to this question because:

  • If I use SignPost, I can get the "Sign-in with Twitter" working
  • If I had used Twitter4J, then I had to ask the user for his uid/pass

Although I wanted to use Twitter4J only.

Anyhow, I devised a way between these two and used Twitter4J to achieve "Sign-in with Twitter".

离不开的别离 2024-10-07 06:08:29

Twitter4J 没有依赖性,并且有自己的 OAuth 支持实现。

您可以使用 Twitter4J 实现 Twitter 登录。
在这里您可以找到一个示例网络应用程序。
https://github.com/yusuke/sign-in-with-twitter

Twitter4J has no dependency and it's got its own OAuth support implementation.

You can achieve sign-in-with-twitter with Twitter4J.
Here you can find an example webapp.
https://github.com/yusuke/sign-in-with-twitter

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文