spring-attic / spring-social-twitter

Twitter API binding and connect support.
http://projects.spring.io/spring-social-twitter
Apache License 2.0
122 stars 115 forks source link

Callback url problem after Twitter API update #126

Open paweljarosz83 opened 6 years ago

paweljarosz83 commented 6 years ago

There were some changes to Twitter API recently, and as a result an attempt to login with Twitter fails.

code=415 Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings

Even though there are valid urls set in twitter app settings page, 403 is returned. Is this issue addressed already in any way?

https://twittercommunity.com/t/action-required-sign-in-with-twitter-users-must-whitelist-callback-urls/105342

co0p commented 6 years ago

https://twitter.com/TwitterAPI/status/1006635008692350977

paweljarosz83 commented 6 years ago

Thanks for an answer. Yes, thats what I'm talking about. I read that. "The callback_url parameter provided must match one of the whitelisted callback URLs. " Does Spring Social Twitter provide a _callbackurl parameter in it's requests? If so, how to set it without breaking into a source code? I dont think it's possible. Looks like this project is not compatible with new Twitter API at all after Twitter changes.

paweljarosz83 commented 6 years ago

I can't believe nobody faced this problem, that's the first thing that hits you with any of the examples provided here.

RajHirani commented 5 years ago

I am facing the same problem

paweljarosz83 commented 5 years ago

http://localhost:80/signin/twitter https://yourdomain.com/auth/twitter https://YOUR.IP.ADDRESS:443 http://YOUR.IP.ADDRESS/signin/twitter https://YOUR.IP.ADDRESS/auth/twitter http://localhost:80/auth/twitter

May not work on all machines. For example some VPS will be visible under different IP than you see, because they are using proxy. Other than that works fine, no need to recomple sources or any other hacking of Spring Social.