Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript OAuth sign in with Twitter

I have to integrate Sign-in-with Twitter in my app as below. https://dev.twitter.com/docs/auth/sign-twitter It is browser based app developed in JavaScript I have been refering google code java script OAuth, but im confused how to use oauth/authenticate and how to get the oauth_token

Can any one please help me out with some samples ?

like image 767
user296601 Avatar asked Mar 18 '10 14:03

user296601


1 Answers

Problem with this is that anyone who views your page can also now view your consumer key and secret which must be kept private.

Now, someone could write an app that uses your app credentials and do naughty and bad things to the point that twitter and users ban you, and there isnt anything you can do.

Twitter do state that every possible effort must be made to keep these values private to avoid this happening

Unfortunately, there is currently no way to use oAuth in Browser based JavaScript securely.

like image 101
Dan Avatar answered Sep 24 '22 12:09

Dan