Move grant and IP restriction logic from OAuth to core
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 2 Dec 2015 17:10:26 +0000 (12:10 -0500)
committerGergő Tisza <gtisza@wikimedia.org>
Tue, 12 Jan 2016 22:37:33 +0000 (22:37 +0000)
commitef5bd7347b0bc8c6e23cdce3eab7b9041bad5e26
treedb986b9b9b848cd3b86d1126c7fad3264f4d2148
parenta73c5b7395a07d490f7052fd3b2491ebd656b190
Move grant and IP restriction logic from OAuth to core

This also adds code to User to allow SessionProviders to apply the grant
restrictions without needing to hook UserGetRights.

Change-Id: Ida2b686157aab7c8240d6a7a5a5046374ef86d52
19 files changed:
RELEASE-NOTES-1.27
autoload.php
includes/DefaultSettings.php
includes/session/Session.php
includes/session/SessionBackend.php
includes/session/SessionProvider.php
includes/specialpage/SpecialPageFactory.php
includes/specials/SpecialListgrants.php [new file with mode: 0644]
includes/user/User.php
includes/utils/MWGrants.php [new file with mode: 0644]
includes/utils/MWRestrictions.php [new file with mode: 0644]
languages/i18n/en.json
languages/i18n/qqq.json
languages/messages/MessagesEn.php
tests/phpunit/includes/session/SessionBackendTest.php
tests/phpunit/includes/session/SessionProviderTest.php
tests/phpunit/includes/session/SessionTest.php
tests/phpunit/includes/utils/MWGrantsTest.php [new file with mode: 0644]
tests/phpunit/includes/utils/MWRestrictionsTest.php [new file with mode: 0644]