Page MenuHomePhabricator

Get login token from action=query&meta=tokens
Closed, ResolvedPublic

Description

Per this api announcement tokens should be fetched through action=query&meta=tokens&type=login rather than hitting action=login and checking for a NeedToken response.

This is handled by LoginManager in data/api.py

The current method still works but triggers an API warning.

Event Timeline

Lokal_Profil raised the priority of this task from to Needs Triage.
Lokal_Profil updated the task description. (Show Details)
Lokal_Profil added a project: Pywikibot.
Lokal_Profil subscribed.

Change 271514 had a related patch set uploaded (by Lokal Profil):
Get login token from action=query&meta=tokens

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

My fix should use the new token call for mediaWiki >= 1.27, otherwise business as usual

Change 271514 merged by jenkins-bot:
Get login token from action=query&meta=tokens

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

Lokal_Profil claimed this task.
Lokal_Profil removed a project: Patch-For-Review.