Skip to content

Express 3.x app using Passport for authentication with username and password.

License

Notifications You must be signed in to change notification settings

passport/express-3.x-local-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: This example uses an outdated version of Express. For an example using the latest version, refer to express-4.x-local-example.

This example demonstrates how to use Express 3.x and Passport to authenticate users using a username and password with form-based authentication. Use this example as a starting point for your own web applications.

Instructions

To install this example on your computer, clone the repository and install dependencies.

$ git clone git@github.com:passport/express-3.x-local-example.git
$ cd express-3.x-local-example
$ npm install

Start the server.

$ node server.js

Open a web browser and navigate to http://localhost:3000/ to see the example in action. Log in using username jack and password secret.

About

Express 3.x app using Passport for authentication with username and password.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published