Skip to content
Express 4.x app using Passport for authentication with username and password.
JavaScript HTML
Branch: master
Clone or download
Pull request Compare This branch is even with passport:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
db
views
.gitignore
LICENSE
README.md
package.json
server.js

README.md

This example demonstrates how to use Express 4.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 https://github.com/passport/express-4.x-local-example.git
$ cd express-4.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.

You can’t perform that action at this time.