Wikimedia Developer Support

Help required to enable Mediawiki OAuth in VideoCutTool (Node.js)



I’m facing a minor issue and after putting much effort to fix this, I thought of asking for help/Advice to make a fix.

I have hosted the back-end of VideoCutTool in toolforge, and I’m trying to implement the MediaWiki OAuth by taking as a reference.

I have implemented here

But when I use this route
I’m facing issue as “OAuth authentication requires session support”, When I tried to implement this in my local server :frowning:

I tried to fix this my self, I searched around and also went through the but nothing worked out :frowning:


@Gopavasanth I’m looking into your code. For working in localhost, maybe stick to the changes that were there in the repo before this commit which means not using express.router and making get request on express variable app. Also, ensure that express-session is installed, your redirect URL is complete and has /video-cut-tool-back-end, and then callback URL in OAuth consumer setting looks like: http://localhost:4000/video-cut-tool-back-end/auth/mediawiki/callback. By ensuring these changes are in place, I was able to resolve the OAuth authentication requires session support error and got to the Application connection error page on Meta. As an app owner, you might be able to take care of this error.