Page MenuHomePhabricator

Allow managing OAuth apps programmatically
Open, Needs TriagePublic

Description

OAuth apps are stored in the database and managed via a web UI. The UI is terrible (see e.g. T98880 and T103587) but even if it weren't, it doesn't seem the right way to manage apps that we maintain ourselves (such as the Wikimedia mobile apps). Current apps are tied to a wiki username, can be overridden by volunteer OAuth admins, the DB store doesn't easily allow for translations etc.

So alongside the current mechanism, there should be a parallel mechanism which is configuration-based - $wgOAuthInternalConsumers or something like that, that contains an array of consumer / app definitions which are checked during consumer lookups.

Event Timeline

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

Change #1307843 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/OAuth@master] Add constants for consumer fields and some values

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

Change #1307844 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/OAuth@master] Extract consumer validation from ConsumerSubmitControl

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

Change #1307845 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/OAuth@master] [WIP] Introduce ConsumerRepository

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

Change #1307846 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/OAuth@master] [WIP] Manage first-party apps as configuratioin

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

Change #1308698 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/OAuth@master] [WIP] Add ArrayConsumerRepository

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

Change #1307843 merged by jenkins-bot:

[mediawiki/extensions/OAuth@master] Add constants for consumer fields and some values

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

Change #1307844 merged by jenkins-bot:

[mediawiki/extensions/OAuth@master] Extract consumer validation from ConsumerSubmitControl

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

Change #1307845 merged by jenkins-bot:

[mediawiki/extensions/OAuth@master] Introduce ConsumerRepository service

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

Change #1310231 had a related patch set uploaded (by Bartosz Dziewoński; author: OAuth Developer):

[mediawiki/extensions/OAuth@master] Introduce ConsumerAcceptanceRepository service

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