Add a central ID lookup service
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 12 Nov 2015 23:21:19 +0000 (18:21 -0500)
committerBryan Davis <bd808@wikimedia.org>
Wed, 2 Dec 2015 21:50:36 +0000 (14:50 -0700)
commitd032bb52cd8c0de3066f84497d80f8fdf37ddadc
tree63ccb26808941cb85ada18b19c8a6536ea6cbc88
parenta9521635bf35175eccfed04c9a3dc47b15b4bdfc
Add a central ID lookup service

Anything that wants to be "central" right now has to depend on
CentralAuth, and then either can't work without CentralAuth or has to
branch all over the place based on whether CentralAuth is present. Most
of the time all it really needs is a mapping from local users to central
user IDs and back or the ability to query whether the local user is
attached on some other wiki, so let's make an interface for that in
core.

See I52aa0460 for an example implementation (CentralAuth), and Ibd192e29
for an example use (OAuth).

Bug: T111302
Change-Id: I49568358ec35fdfd0b9e53e441adabded5c7b80f
19 files changed:
RELEASE-NOTES-1.27
autoload.php
includes/DefaultSettings.php
includes/User.php [deleted file]
includes/UserArray.php [deleted file]
includes/UserArrayFromResult.php [deleted file]
includes/UserRightsProxy.php [deleted file]
includes/user/CentralIdLookup.php [new file with mode: 0644]
includes/user/LocalIdLookup.php [new file with mode: 0644]
includes/user/User.php [new file with mode: 0644]
includes/user/UserArray.php [new file with mode: 0644]
includes/user/UserArrayFromResult.php [new file with mode: 0644]
includes/user/UserRightsProxy.php [new file with mode: 0644]
tests/phpunit/includes/UserArrayFromResultTest.php [deleted file]
tests/phpunit/includes/UserTest.php [deleted file]
tests/phpunit/includes/user/CentralIdLookupTest.php [new file with mode: 0644]
tests/phpunit/includes/user/LocalIdLookupTest.php [new file with mode: 0644]
tests/phpunit/includes/user/UserArrayFromResultTest.php [new file with mode: 0644]
tests/phpunit/includes/user/UserTest.php [new file with mode: 0644]