Visit the login page while already logged in, and you'll see
You are already logged in as Foo.
and then below it
Your central login session has expired. Please log in again to continue.
but the session is obviously fine, as the first message shows.
| Tgr | |
| Dec 4 2025, 10:05 PM |
| F70868828: Screenshot 2025-12-05 at 2.12.07 PM.png | |
| Dec 5 2025, 11:18 AM |
| F70867349: Screenshot 2025-12-05 at 12.37.31 PM.png | |
| Dec 5 2025, 9:39 AM |
| F70867350: Screenshot 2025-12-05 at 12.36.47 PM.png | |
| Dec 5 2025, 9:39 AM |
Visit the login page while already logged in, and you'll see
You are already logged in as Foo.
and then below it
Your central login session has expired. Please log in again to continue.
but the session is obviously fine, as the first message shows.
Change #1215531 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):
[mediawiki/extensions/CentralAuth@master] Do not show central session expiry if it hasn't expired
Oops, I missed this during code review and local testing of 56126683a56. Fixed now:
| before | after |
I observed that during testing locally, when the user is logged in locally and logged out centrally, visiting Special:CreateAccount or Special:UserLogin from the local wiki redirects to Special:UserLogin regardless.
This makes sense because it detects that the user has a local session active, but must first log in centrally to perform any other actions. After the user logs in centrally, they are redirected to the page for the previous action they attempted (login or sign up) on the central domain with the correct messages at the top of the form.
I think the flow above is correct.
Change #1215531 merged by jenkins-bot:
[mediawiki/extensions/CentralAuth@master] SUL3: Show expiry message only if user isn't logged-in centrally