Page MenuHomePhabricator

OAuth extension not working in Mediawiki
Closed, ResolvedPublic

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@despens what proxy do you have infront of these services?

Vvjjkkii renamed this task from Quickstatements login calling non-existing part in Mediawiki to loaaaaaaaa.Jul 1 2018, 1:03 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from loaaaaaaaa to Quickstatements login calling non-existing part in Mediawiki.Jul 2 2018, 1:33 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.

@Addshore I am using Caddy.

However the issue is apparently that the OAuth extension doesn't work, Quickstatements tries to load https://staging.catalog.rhizome.org/wiki/Special:OAuth/initiate

According to Special:Version OAuth is present.

despens renamed this task from Quickstatements login calling non-existing part in Mediawiki to OAuth extension not working in Mediawiki.Jul 7 2018, 5:19 AM

After adding wfLoadExtension( 'OAuth' ); and $wgSecretKey = "<randomString>"; to LocalSettings.php, and running update.php, the error changes to Error retrieving token: mwoauth-oauth-exception.

After adding wfLoadExtension( 'OAuth' ); and $wgSecretKey = "<randomString>"; to LocalSettings.php, and running update.php, the error changes to Error retrieving token: mwoauth-oauth-exception.

Do you see any errors messages in the mediawiki error / exception logs?
There may also be some OAuth specific logging you can enable (or just enable the full debug log)

@Tarrow got any time to look at this? (feel free to un-assign yourself if you don't)

Addshore triaged this task as Medium priority.

@despens I guess you already followed it but did you have any problems with any steps from https://github.com/wmde/wikibase-docker/blob/master/quickstatements/README.md ?

@Tarrow

Hi! I have indeed tried to follow those steps, but didn't get very far. When I log in as myself, a user with admin powers, I can go to http://<ourwikibase>/Special:OAuthConsumerRegistration, but I get this:

image.png (347×923 px, 84 KB)

But then when I click on this first link, I get this:

image.png (163×648 px, 18 KB)

My user permissions look like this:

image.png (61×641 px, 9 KB)

and my email address was confirmed a week ago.

Could there be some other settings that are preventing me from completing the OAuth consumer registration?

@LJ Sorry for taking so long. There are settings that are needed for proposing OAuth consumers.

I think in your setup the wikibase-bundle image provided files have been overwritten but you can see them here: https://github.com/wmde/wikibase-docker/blob/master/wikibase/1.30/bundle/LocalSettings.php.wikibase-bundle.template

Lines 1-6 should give you all that you need. Or did you already have these set?

I set those six lines to match the ones in that file, and I can now see the option to propose the OAuth consumer. Thank you @Tarrow!

Hopefully it works as planned for you now.