Page MenuHomePhabricator

🌶️ Authenticate and authorize as mediawiki user when making PATCH requests to REST API statement routes
Closed, ResolvedPublic

Description

As a gadget author I would like the user changing statements using the gadget to be authenticated so that they could be credited to the changes they make.
As a gadget author I would like the user changing statements using the gadget to be authorized so that the wiki's editing restrictions are not violated.

Bearer-token based authentication using Authorization HTTP header should be used.

The following requests should also authenticate and authorize the mediawiki user:
PATCH /entities/items/{item_id}/statements/{statement_id}
PATCH /statements/{statement_id}

Event Timeline

Silvan_WMDE renamed this task from Authenticate and authorize as mediawiki user when making PATCH requests to REST API statement routes to 🌶️ Authenticate and authorize as mediawiki user when making PATCH requests to REST API statement routes.Aug 25 2022, 1:44 PM

Change 831828 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Add authorization check to PatchItemStatement

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

Change 831828 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Add authorization check to PatchItemStatement

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