Page MenuHomePhabricator

Most extensions which add a user right should also add or extend a grant
Open, In Progress, MediumPublic

Description

OAuth and bot passwords (and maybe other things, now that grants are in core) rely on $wgGrantPermissions to expose access to privileged functionality, but most extensions don't support it. Any extensions that defines a user right which can in some way influence use of the API should also create a grant for that right, or add it to some existing grant.

Related Objects

StatusSubtypeAssignedTask
In ProgressHokwelum
ResolvedMarcoAurelio
Resolved demon
Resolvedaude
Resolved MusikAnimal
Resolved MusikAnimal
ResolvedAnomie
DeclinedNone
ResolvedJJMC89
ResolvedJJMC89
ResolvedDaimona
DeclinedNone
InvalidNone
ResolvedJJMC89
OpenShubham656jain
ResolvedUrbanecm
ResolvedDiwanshu885
ResolvedDannyS712
DeclinedNone
ResolvedJJMC89
ResolvedJJMC89
DeclinedJJMC89
ResolvedJJMC89

Event Timeline

What's the difference between a grant and a user group?

User groups are assigned to users. Grants are assigned to tools. When a tool acts through a user account, it will only have those rights which are available both through the user's groups and the tool's grants.

Tgr triaged this task as Medium priority.Mar 7 2017, 3:38 AM
Hokwelum changed the task status from Open to In Progress.Mon, Feb 2, 3:30 PM

Hello @Tgr, I have both config set now but I still have the missing key error!

$wgOAuth2PrivateKey = "/Users/hannah/Development/core/my_ssh";
$wgOAuth2PublicKey = "/Users/hannah/Development/core/my_ssh.pub";
Token request failed with HTTP 500: {"error":"server_error","error_description":"The authorization server encountered an unexpected condition which prevented it from fulfilling the request: Key cannot be empty","message":"The authorization server encountered an unexpected condition which prevented it from fulfilling the request: Key cannot be empty"}

That's the UBN from earlier this week (T416456). You'll need to update OAuth and/or MediaWiki core and re-run Composer.