18.05.2016 Views

Mittwoch, 18. Mai, 2016

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MongoDB CRUD the MVC way with Passport Authentication 87<br />

1 Login with Facebook<br />

Twitter OAuth strategy<br />

First, install the Twitter strategy module:<br />

1 npm install passport-twitter --save<br />

Create a Twitter application<br />

Go to Twitter developer page¹³⁹ and click on the _Create New App _button:<br />

Twitter_1<br />

Set Name, Description, Website and most importantly Callback URL:<br />

¹³⁹https://apps.twitter.com/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!