Page MenuHomePhabricator

Provide an API to create consumers
Closed, DeclinedPublic


It would be great if there were an API call that could be made to create (or propose and then approve) new consumers.

I'd like to be able to automatically create new consumers for use in tools as part of the Wikibase-Containers ecosystem rather than having to make users manually go through the specialpage and then propagate the keys to the tools.

Event Timeline

Tarrow created this task.Jul 31 2018, 10:14 AM
Restricted Application added a project: Wikidata. · View Herald TranscriptJul 31 2018, 10:14 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Tgr moved this task from Unsorted to Non-core-API stuff on the MediaWiki-API board.
Anomie closed this task as Declined.Aug 16 2018, 2:40 PM
Anomie added a subscriber: Anomie.

You can't sanely "create" a consumer without already being logged in, which rather defeats the purpose of using OAuth.

T165219 is one potential better proposal. Another would be to somehow figure out a way to safely deal with secret keys in a client.

Or your specific use case, depending on what exactly these tools are, might be satisfied by creating a maintenance script to be run on the command line that creates an appropriate account and configures a consumer for it.