claudioc / jingo

Node.js based Wiki
MIT License
1.02k stars 184 forks source link

Support authentication through Github Enterprise #186

Open csabakoncz opened 7 years ago

csabakoncz commented 7 years ago

config.yml is consulted for various Github URLs so that Jingo can connect to Github instances hosted at arbitrary locations.

E.g. to login using https://mygithub.com one can add the following configuration (tested with Github Enterprise 2.6):

github: enabled: true redirectURL: '' clientId: clientSecret: authorizationURL: https://mygithub.com/login/oauth/authorize tokenURL: https://mygithub.com/login/oauth/access_token userProfileURL: https://mygithub.com/api/v3/user