Skip to content

mangal-interactions/orcid-oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Persistent storage on the ORCID authentification layer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published