Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing Passport Facebook Strategy Oauth

I was looking for a solid example or to be pointed in the right direction of how to simulate testing Passport-Facebook's login process. Completely clueless as where to start.

I'm open to any testing framework.

Best, Austin

like image 587
austin809 Avatar asked May 15 '15 17:05

austin809


1 Answers

While Passport documentation provides a crude/basic example for use Passport-Facebook strategy

http://passportjs.org/docs/facebook

You may like to have a look at this tutorial from scoth.io for detailed example, it teaches you how to authenticate via facebook, twitter and google+ using Node.js and respective strategies. You'll have to follow the first two lessons to achieve your goal

https://scotch.io/tutorials/easy-node-authentication-setup-and-local

like image 55
mynawaz Avatar answered Nov 29 '22 14:11

mynawaz