Introduce mediawiki.ForeignApi
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 14 Aug 2015 23:17:49 +0000 (01:17 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 21 Aug 2015 17:00:01 +0000 (17:00 +0000)
commit2f30ff7a8613f87ba23961c3c638dba5f7213efd
treed082414b8dea4ec36105a3979ffb1e251fd7e004
parenta2f75a52efe316d5fea1b5faf9cb094638b6adaf
Introduce mediawiki.ForeignApi

mw.ForeignApi is an extension of mw.Api, automatically handling
everything required to communicate with another MediaWiki wiki via
cross-origin requests (CORS).

Authentication-related MediaWiki extensions may extend it further to
ensure that the user authenticated on the current wiki will be
automatically authenticated on the foreign one. A CentralAuth
implementation is provided in I0fd05ef8b9c9db0fdb59c6cb248f364259f80456.

Bug: T66636
Change-Id: Ic20b9682d28633baa87d22e6e9fb71ce507da58d
autoload.php
docs/hooks.txt
includes/resourceloader/ResourceLoaderForeignApiModule.php [new file with mode: 0644]
maintenance/jsduck/categories.json
resources/Resources.php
resources/src/mediawiki.api/mediawiki.ForeignApi.js [new file with mode: 0644]
tests/qunit/QUnitTestResources.php
tests/qunit/suites/resources/mediawiki.api/mediawiki.ForeignApi.test.js [new file with mode: 0644]