sahat / satellizer

Token-based AngularJS Authentication
https://satellizer-sahat.rhcloud.com
MIT License
7.85k stars 1.13k forks source link

Twitter Authentication issue #1093

Open amshekar opened 7 years ago

amshekar commented 7 years ago

Whoa there!

There is no request token for this page. That's the special key we need from applications asking to use your Twitter account. Please go back to the site or application that sent you here and try again; it was probably just a mistake._

https://api.twitter.com/oauth/authenticate?%7B%22errors%22%3A%5B%7B%22code%22%3A32%2C%22message%22%3A%22Could%20not%20authenticate%20you.%22%7D%5D%7D=

Cloned the Satellizer app into my lap top. browsed the server folder and successfully able to start the servive by running node against server.js. To test the Twitter OAuth in local changed the url from app.js to http://localhost:3000/auth/twitter ` $authProvider.twitter({

    url: 'http://localhost:3000/auth/twitter'
});`

and started the angular client app from index.html. On clicking of twitter login getting the above error

jochumdev commented 7 years ago

You need to create an App on twitter (see the README howto) and you need to run a server side application - see the examples for it.

I think twitter doesn't allow "localhost" as Auth URL.

amshekar commented 7 years ago

@pcdummy
I followed the readme Created the app in twitter and updated the keys in my solution i gave local host as an example

$authProvider.twitter({

    url: 'http://www.customdomain.com/auth/twitter'
});`

I did all what we have in the readme but no luck

amshekar commented 6 years ago

@pcdummy Did you find any work around