aboutsummaryrefslogtreecommitdiffstats
path: root/includes/auth/SecondaryAuthenticationProvider.php
Commit message (Collapse)AuthorAgeFilesLines
* auth: Pass canAlwaysAutocreate from session to pre-auth providersErik Bernhardson2024-09-061-0/+2
| | | | | | | | | | | | | | | Session providers can provide a `canAlwaysAutocreate` flag which indicates account creation is exempt from autocreate permission checks. This is used, for example, for providers that provide users for supporting applications in a wiki farm. Pass that information along to pre-authentication providers so they can respect the intent of the flag. We cannot simply skip pre-authentication, it's used for non-permission-related things like preventing CentralAuth username conflicts. Bug: T373778 Change-Id: Ie3aeaf48e615e2fb85b2069203ab91ca0127ae05
* Remove more indirect calls to IDBAccessObject::READ_* constantsAmir Sarabadani2024-01-231-1/+1
| | | | | | | | | | Found via (?<!IDBAccessObject)::READ_ We are planning to deprecate and remove implementing IDBAccessObject interface just to use the constants. Bug: T354194 Change-Id: I89d442fa493b8e5332ce118e5bf13f13b8dd3477
* Namespace User under \MediaWiki\UserJames D. Forrester2023-09-191-1/+1
| | | | | Bug: T166010 Change-Id: I7257302b485588af31384d4f7fc8e30551f161f1
* Expand SessionManager / AuthManager documentationGergő Tisza2016-08-301-6/+39
| | | | | | Bug: T110628 Bug: T142154 Change-Id: Ib0a41f01b3d12267b2a94ea1375e6d13cacd2b69
* Add $options parameter for testUserForCreation()Brad Jorsch2016-06-201-1/+9
| | | | | | | | | | | | This will allow providers to know whether the call is just for testing (from ApiQueryUsers) or for actual creation, and skip duplicate work when testForAccountCreation() is going to be called. Change-Id: Id3ef713fd377135d78f66e5100dedd4689293b59 Depends-On: I4af8b3b692f60c42f8685b90be5936da7ba4e2e2 Depends-On: Ie9639a15d04b387be0e72754301eb6d91cd8adc2 Depends-On: I063cbdfbd9a223bf2391fce2b714ab82ddd3272f Depends-On: I7c67512634f6e72251911238f083857da9fd3f84
* Add AuthManagerBrad Jorsch2016-05-161-0/+217
This implements the AuthManager class and its needed interfaces and subclasses, and integrates them into the backend portion of MediaWiki. Integration with frontend portions of MediaWiki (e.g. ApiLogin, Special:Login) is left for a followup. Bug: T91699 Bug: T71589 Bug: T111299 Co-Authored-By: Gergő Tisza <gtisza@wikimedia.org> Change-Id: If89d24838e326fe25fe867d02181eebcfbb0e196