The OAuth extension should make it easier for users to discover other actions for a specific OAuth consumer from each of it's special page, where it makes sense. These include:
Uii, that looks nice, and it also allows us to get multiple students into the OAuth extension, one for each linking, isn't it? So, just for clarification, these are the links we want to introduce, right?
- Special:OAuthListConsumers/view/<key>-> Special:OAuthConsumerRegistration/update/<key> (owner only)
- Special:OAuthListConsumers/view/<key> -> Special:OAuthManageConsumers/<key> (admin only)
- Special:OAuthListConsumers/view/<key> -> Special:OAuthManageMyGrants/update/<id> (only if user granted this client[1]) -> https://gerrit.wikimedia.org/r/c/mediawiki/extensions/OAuth/+/571067
- Special:OAuthConsumerRegistration/update/<key> -> Special:OAuthListConsumers/view/<key> (everyone)
- Special:OAuthManageConsumers/<key> -> Special:OAuthListConsumers/view/<key> (everyone)
- Special:OAuthManageMyGrants/update/<id> -> Special:OAuthListConsumers/view/<key> (everyone)
The links can be added as sitelinks.
[1]
From key to acceptance id: create consumer via MWOAuthConsumer::newFromKey; create acceptance via MWOAuthConsumerAcceptance::newFromUserConsumerWiki and MWOAuthUtils::getCentralIdFromLocalUser; use getId. From acceptance id to key: create acceptance via MWOAuthConsumerAcceptance::newFromId; get consumer id via getId; get consumer via MWOAuthConsumer::newFromId; use getConsumerKey.
Original task:
Ideally, we want to have a button / link to go from the view page of an OAuth page to its management page.
from this:
https://meta.wikimedia.org/wiki/Special:OAuthListConsumers/view/c122a589c582777abedab6d24ad9b6ee
Getting Started Resources
- Extension:OAuth https://www.mediawiki.org/wiki/Extension:OAuth (code repository is linked here too!).
- Tutorial on how to use Git, Gerrit and submit a patch https://www.mediawiki.org/wiki/Gerrit/Tutorial
- Tutorial on how to contribute to MediaWiki code and extensions https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker