Thursday, May 8, 2014

SailsJS, Passport and Social Auth

There is Git ready to go example of Sails + Passport JS social authentication for Github, Google+, Facebook and Twitter. I've successfully set up Facebook auth and I suppose the rest will work just as well.

A point to note for Facebook call backs when you see this:

"Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."

On Facebook's dev app page where you created the app, go to Settings->Advanced, enter the callback URL  and save.



https://github.com/stefanbuck/sails-social-auth-example/tree/sails_0.10

No comments: