Skip to content

passport/express-3.x-http-basic-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This example demonstrates how to use Express 3.x and Passport to authenticate users via the HTTP Basic scheme. 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-http-basic-example.git
$ cd express-3.x-http-basic-example
$ npm install

Start the server.

$ node server.js

Use curl to send an authenticated request.

$ curl -v --user jack:secret http://127.0.0.1:3000/

About

Express 3.x app using Passport for authentication via HTTP Basic scheme.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published