Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 uses signpost for OAuth, still am not sure about the choice that I should make.

Kindly assist.

Thanks a lot!

like image 883
Aman Alam Avatar asked Dec 12 '22 18:12

Aman Alam


1 Answers

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)
like image 178
Aman Alam Avatar answered Jan 18 '23 16:01

Aman Alam