# labs-tools-nodejs-mw-oauth-tool **Repository Path**: mirrors_wikimedia/labs-tools-nodejs-mw-oauth-tool ## Basic Information - **Project Name**: labs-tools-nodejs-mw-oauth-tool - **Description**: 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) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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](https://wikitech.wikimedia.org/wiki/Help:Toolforge/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 ------- * [Passport MediaWiki OAuth npm module by Dan Andreescu](https://www.npmjs.com/package/passport-mediawiki-oauth)