Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
public
src
styles
ui
views
Makefile
README.md
config.json
package.json
server.js

README.md

Derby.js Authentication Example

Uses derby-passport to provide authentication to DerbyJS. Salient example files:

  • lib/server/index.js - middleware initialization
  • lib/auth/index.js - component initialization (optional, use if you want derby-passport components in your views)
  • views/auth/index.html - oauth buttons and login / register using components <derby-passport:login /> and <derby-passport:register />

To run this example:

  • npm install && cd .. && npm install - you need node_modules for both this & above directories
  • npm start
  • navigate to http://localhost:3000
Something went wrong with that request. Please try again.