Reputation: 40621
I found several answers and solutions, but most of it somehow integrated server-side helper.
I need something like Facebook OAuth Javascript for Twitter.
Desired flow should be (the same as FB.login()
provides):
Without using any my custom server side page.
I couldn't read out from dev documentation how could I implement this.
Upvotes: 2
Views: 2780
Reputation: 648
And then, they realized the security problems this has and have announced they will be closing this method very soon :
"@Anywhere is deprecated and will cease functioning today, March 5th, 2013. See Sunsetting @Anywhere for more information."
Upvotes: 1
Reputation: 10163
You can use Twitter's @Anywhere to let users sign in to their account via JavaScript. Look here for example:
http://dev.twitter.com/anywhere/begin#login-signup
Once the user is logged in, you can check their login state both from client and from server. On client, just use their provided function, and on server, you can validate the cookie. It is also described in that page.
http://dev.twitter.com/anywhere/begin#current-user
Upvotes: 2