Page MenuHomePhabricator

Exploratory testing on PHP 8.3 for MediaWiki authentication stack: Login
Closed, ResolvedPublic

Description

See T402597: Exploratory testing on PHP 8.3 for MediaWiki Platform Team components for context. T384232: QA for SUL3 on testwikis has more info on some checklist items.

Login

  • basic password login ✅
  • logout ✅
  • "keep me logged in checkbox" (should result in centralauth_Token cookie with 1-year expiry on the wiki where you are logging in) ✅
  • title-blacklisted user cannot autocreate-on-login (test both the JS dropdown on the username field, and the form submit) ✅
  • LoginNotify email is sent after failed login attempts ✅
  • checkuser data is logged after successful login, including client hints ✅

Reauthentication

  • when using Special:BotPassword, user is required to reauthenticate, then can set up a bot password (note that reauthentication timout has been increased to 1 hour recently - if you don't want to wait 1 hour after login, you can delete your <wiki>Session cookie to get a non-reauthenticated session) ✅
  • same for Special:ChangePassword (which will redirect to the central domain) ✅

API

  • login via action=clientlogin (on a local domain) ✅
  • bot login via action=login ✅
  • log in and out on one of the WMF mobile apps (skipped ❌). See T403824

Credentials change

  • Change your password ✅
  • Do a password reset (log in with a temporary password) ✅

Instrumentation

Event Timeline

DAlangi_WMF changed the task status from Open to In Progress.Sep 3 2025, 9:19 AM
DAlangi_WMF claimed this task.
DAlangi_WMF moved this task from Next to In progress on the MediaWiki-Platform-Team board.

@Tgr, re log in and out on one of the WMF mobile apps, I'm not exactly sure how we can log in to a simulated PHP environment via the mobile apps? On the browser, we can use WikimediaDebug, but I'm not sure if there is an equivalent in a mobile environment. Is there a proper way to test this?

@Tgr, re log in and out on one of the WMF mobile apps, I'm not exactly sure how we can log in to a simulated PHP environment via the mobile apps? On the browser, we can use WikimediaDebug, but I'm not sure if there is an equivalent in a mobile environment. Is there a proper way to test this?

Remote debugging and then messing with cookies, but seems more effort than worth it. The code paths the apps hit aren't that different so we can just skip this.

Filed T403824: Add WikimediaDebug functionality to the Wikimedia Android app about making it easier in the future.

DAlangi_WMF updated the task description. (Show Details)