6
Session Management & Authentication with Node Kianosh Pourian twitter: @kianoshp blog: innovatorylife.com Thursday, January 17, 13

Passport Nodejs Lightening Talk

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Passport Nodejs Lightening Talk

Session Management & Authentication with Node

Kianosh Pouriantwitter: @kianoshp

blog: innovatorylife.com

Thursday, January 17, 13

Page 2: Passport Nodejs Lightening Talk

Purpose• To be able to authenticate users through:

• login and password

• third party validation

• twitter

• facebook

• linkedin

• github

• Manage sessions

Thursday, January 17, 13

Page 4: Passport Nodejs Lightening Talk

Passport - installation & configuration

• Modules needed

• passport

• passport-local

• Configuration

• Authenticate

• Sessions

Thursday, January 17, 13

Page 6: Passport Nodejs Lightening Talk

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