On the callback, the server replies with "Internal Server Error" and the logs output:
Error: Not enough or too many segments
at /srv/cocoda/login-server/node_modules/passport-mediawiki-oauth/lib/passport-mediawiki-oauth/oauth.js:173:22
at passBackControl (/srv/cocoda/login-server/node_modules/passport-mediawiki-oauth/lib/passport-mediawiki-oauth/oauth-patches.js:114:15)
at IncomingMessage.<anonymous> (/srv/cocoda/login-server/node_modules/passport-mediawiki-oauth/lib/passport-mediawiki-oauth/oauth-patches.js:134:13)
at IncomingMessage.emit (events.js:194:15)
at IncomingMessage.EventEmitter.emit (domain.js:441:20)
at endReadableNT (_stream_readable.js:1103:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
On the callback, the server replies with "Internal Server Error" and the logs output:
This is hard to debug. I already created an issue in
passport-mediawiki-oauth
asking for help: https://github.com/milimetric/passport-mediawiki-oauth/issues/2