Skip to content

Use Passport.JS to handle authentication and CouchDB to handle authorization

License

Notifications You must be signed in to change notification settings

marfarma/passport-couchdb

Repository files navigation

Integrating CouchDB and Passport.JS authentication and authorisation

  • merge supplied local.ini with your CouchDB installation

  • check that node path is correct

  • put app.passport.js into /usr/local/lib/couchdb/node/

  • restart CouchDB

  • check logfile to see the message passed back:

      [Wed...] [info] [<0.31.0>] Apache CouchDB has started on https://0.0.0.0:5984/
      [Wed...] [info] [<0.94.0>] Daemon "passport" :: listening on port 4000
    
  • do a few basic tests:

      $ curl https://localhost:5984/_passport
      [passport] daemon is up
      $ curl https://localhost:4000/
      [passport] daemon is up
    

About

Use Passport.JS to handle authentication and CouchDB to handle authorization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published