开发者

SignPost or Twitter4j for Sign-in with Twitter (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 开发者_JAVA技巧uses signpost for OAuth, still am not sure about the choice that I should make.

Kindly assist.

Thanks a lot!


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".

  • The code can be seen here: http://www.pastie.org/1283631
  • and the manifest can be seen here: http://pastie.org/1283632 (As it was for an Android App)


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜