Session Management &                     Authentication with Node                               Kianosh Pourian           ...
Purpose                     •     To be able to authenticate users through:                           •   login and passwo...
Options                     • EveryAuth                     • Passport                     • Custom made                  ...
Passport - installation & configuration                     •      Modules needed                           •   passport   ...
Pitfalls                     •     req.flash - https://github.com/visionmedia/express/                           wiki/Migra...
Pitfalls (continued)                     •     Order of configuration                           •   The order that you pass...
Upcoming SlideShare
Loading in...5
×

Passport Nodejs Lightening Talk

1,387

Published on

Installation and configuration of Passport - an authentication and session management module for NodeJS.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,387
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Passport Nodejs Lightening Talk

  1. 1. Session Management & Authentication with Node Kianosh Pourian twitter: @kianoshp blog: innovatorylife.comThursday, January 17, 13
  2. 2. Purpose • To be able to authenticate users through: • login and password • third party validation • twitter • facebook • linkedin • github • Manage sessionsThursday, January 17, 13
  3. 3. Options • EveryAuth • Passport • Custom made • connect-authThursday, January 17, 13
  4. 4. Passport - installation & configuration • Modules needed • passport • passport-local • Configuration • Authenticate • SessionsThursday, January 17, 13
  5. 5. Pitfalls • req.flash - https://github.com/visionmedia/express/ wiki/Migrating-from-2.x-to-3.x • connect-flash • DB for session management • Redis - http://stackoverflow.com/questions/ 12947965/nodejs-passport-js-redis-how-to- store-sessions-in-redis?lq=1 • MongoDBThursday, January 17, 13
  6. 6. Pitfalls (continued) • Order of configuration • The order that you pass things to app.use determines the order in which each middleware is given the opportunity to process a request. • place app.use(...static) at the top in order to avoid parsing and authenticating them through passport.Thursday, January 17, 13
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×