AndrejGajdos / auth-flow-spa-node-react

🔐 User authentication in SPA, built with Node.js and React (Koa, Passport, Redux, Redux-Saga and React Router). Local authentication – users can log in using username, passport and authentication through Facebook.
http://andrejgajdos.com/authenticating-users-in-single-page-applications-using-node-passport-react-and-redux/
MIT License
30 stars 8 forks source link

Facebook blocking Heroku IP Addresses #1

Open halfbeep opened 5 years ago

halfbeep commented 5 years ago

Hi Andrej, this is a great piece of work and i'd like to pull to contribute adding Google and Instagram (after i've coded and tested) This issue is not related to your coded solution - but I'm interested in how you managed to run the video shown serving from heroku. Because of the dynamic IP on heroku I get this in the browser after Facebook auth authentication

{"message":"This IP can't make requests for that application.","type":"OAuthException"}

Facebook said it was resolved years ago here and it's also discussed here

Intrigued that you didn't see the error during your good work

Best wishes Sh..

AndrejGajdos commented 5 years ago

@halfbeep thanks for your positive feedback. I am happy my blog post + sample project are helpful. You are welcome to add login through Google and Instagram.

In regards to OAuthException issue, I think I got similar error and it was due to wrong configuration in facebook app settings. I wrote basic configuration steps here, but I can imagine facebook changes this configuration it in the future.