HomePhabricator

Implement a mediawiki.ForeignApi extension

Authored by matmarex.

Description

Implement a mediawiki.ForeignApi extension

Extends mw.ForeignApi with CentralAuth authentication handling,
amending every request with a 'centralauthtoken' parameter, if
required.

Every request to the foreign wiki will be preceded by a
'action=centralauthtoken' request to the local wiki, except in cases
where we detect that it is unproductive or unnecessary.

Depends on Ic20b9682d28633baa87d22e6e9fb71ce507da58d in MediaWiki core.

Bug: T66636
Change-Id: I0fd05ef8b9c9db0fdb59c6cb248f364259f80456