Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 887 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 887 Bytes

orcid-oauth2

Gitter

Persistent storage for ORCID authentification server.

Getting started

  1. Install the node dependencies with npm intall
  2. Set your database in config/db.json
  3. 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
};
  1. 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