Page MenuHomePhabricator

Cannot edit API using own non-approved consumer
Closed, ResolvedPublic

Description

It's possible to get an OAuth token with an non-approved consumer, but it's not possible to actually use it: calling the API results in

{u'servedby': u'mw1148', u'error': {u'info': u'The authorization headers in your request are for an OAuth consumer that is not currently approved', u'code': u'mwoauth-invalid-authorization-not-approved'}}

This makes it impossible to test API interactions before the consumer has been approved. Not a huge issue, but it would be easier if one could test different wiki/privilege settings before asking for approval.


Version: master
Severity: minor

Details

Reference
bz55587

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:25 AM
bzimport set Reference to bz55587.
bzimport added a subscriber: Unknown Object (MLST).

Change 89865 had a related patch set uploaded by Anomie:
Fix onUserLoadFromSession and pending consumers

https://gerrit.wikimedia.org/r/89865

Change 89865 merged by Aaron Schulz:
Fix onUserLoadFromSession and pending consumers

https://gerrit.wikimedia.org/r/89865

Fix is merged. It should be deployed to WMF wikis with 1.22wmf22, see https://www.mediawiki.org/wiki/MediaWiki_1.22/Roadmap for the schedule.