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

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
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.