HomePhabricator

mediawiki.api: Use action=query&meta=tokens instead of action=tokens

Description

mediawiki.api: Use action=query&meta=tokens instead of action=tokens

Follows-up aacdb664a1, which was reverted.

API action=query&meta=tokens has different token types than the old
action=tokens values. Use a map to maintain support in the JavaScript API for
old token types that now fold into the generic 'csrf'.

Aside from core token types, those added by extensions are no longer
actively used from the old token API.

Bug: T72059
Change-Id: Iec3a9f0f51d64d90c81a147cc18097dcf679c7c9

Details

Provenance
KrinkleAuthored on
Parents
rMW42e257a1a28c: API: Remove dbg, txt, and yaml formats
Branches
Unknown
Tags
Unknown
ChangeId
Iec3a9f0f51d64d90c81a147cc18097dcf679c7c9