Persistent storage for ORCID authentification server.
- Install the node dependencies with
npm intall
- Set your database in
config/db.json
- Write your credentials (ORCID's client) in
config/oauth.js
:
module.exports = config = {
authorizationURL: 'https://orcid.org/oauth/authorize',
clientID: YOUR_CLIENT_ID,
clientSecret: YOUR_SECRET_ID,
tokenURL: 'https://pub.orcid.org/oauth/token',
callbackURL: YOUR_CALLBACK,
scope: '/authenticate',
passReqToCallback: true
};
npm start
Don't forget to change the status of your environment with the variable $NODE_ENV
Then, one route to rule them all: localhost:3000/auth