Skip to content

[Not actively maintaind] Wrapper for multiple passport routes on a node.js express app

License

Notifications You must be signed in to change notification settings

olddigger/diggerpassport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiggerPassport

A library to mount multiple passport OAuth handlers onto a diggerexpress app.

var DiggerPassport = require('diggerpassport');
var DiggerExpress = require('diggerexpress');

var app = DiggerExpress();


DiggerPassport(app, {
	// used for namespacing
	id:'appid',

	// where to mount the routes onto the express app
	mountpath:'/auth',

	// if defined we will save the user session in redis
	redis:{
		port:6379,
		hostname:'127.0.0.1'
	},

	// if defined we will look after saving/loading users to the given digger supplychain
	supplychain:userdb,

	// the routes for HTTP redirection
	httproutes:{
		success:'/',
		failure:'/?loginmessage=incorrect details'
	},

	// what providers we want to use
	providers:{
		local:{
		},
		facebook:{
			key:'...',
			secret:'...'
		},
		twitter:{
			key:'...',
			secret:'...'
		}
	}
})

// setup the rest of the app here

##License

MIT

About

[Not actively maintaind] Wrapper for multiple passport routes on a node.js express app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published