This module lets you authenticate using Open Humans in your Node.js applications. By plugging into Passport, Open Humans authentication can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express.
$ npm install --save passport-open-humans
The Open Humans authentication strategy authenticates users using a Open Humans
account and OAuth 2.0 tokens. The strategy requires a
verify callback, which
accepts these credentials and calls
done providing a user, as well as
options specifying a app ID, app secret, and callback URL.
passport.authenticate(), specifying the
'open-humans' strategy, to
For example, as route middleware in an Express application: