Skip to content

wikimedia/labs-tools-nodejs-mw-oauth-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-mediawiki-oauth-tool

A basic Node.js webservice. It shows how to manage OAuth authentication with a MediaWiki server via the passport-mediawiki-oauth package

Developed for My first NodeJS OAuth tool tutorial on Wikitech.

Development

$ git clone https://github.com/srish/nodejs-mediawiki-oauth-tool 
$ cd nodejs-mediawiki-oauth-tool
$ npm install 
Copy config.example.js as config.js and enter your details
$ node server.js

For production

The tool is hosted here on Wikimedia's Toolforge: https://tools.wmflabs.org/nodejs-mw-oauth-tool. To make changes:

$ ssh username@login.tools.wmflabs.org
$ become nodejs-mw-oauth-tool
$ cd /www/js

Credits

About

Github mirror of "labs/tools/nodejs-mw-oauth-tool" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published