Skip to content

hull-graveyard/hull_userbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bring you own users

This repository is a demo of a hull.io feature, that allows you to plug your existing pool of users into hull.io services.

There are two ways to achieve this:

  • Your users belong in your own DB, and you don't want to change anything
  • Your users log into your app via Facebook, Twitter...

This is an Node.js app built with Express, and it uses the npm module for hull: hull-node.

Install

npm install
npm start

Open your browser and point to the URL http://localhost:3000.

What you'll find

GET /use_hull

In this part of the demo, you will see how you can use the authentication features of hull to tell your server when a user has logged in.

The relevant code is located in ./lib/use_hull.js.

GET /use_passport

In the part of the demo, you will see how you can use your own authentication system and automatically login your current user to hull services. For this, we have used the passport library to authenticate the users.

The relevant code is located at ./lib/use_passport.js

Licence

MIT

About

Node.js / "Bring you own users" demo with Passport

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published