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.
$ 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
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