Page MenuHomePhabricator

SUL3 login broken when the local wiki and the central domain are in the same $wgCentralAuthCookieDomain set
Closed, DeclinedPublic

Description

Seen on a local setup, where after a successful SUL3 login the local wiki deleted the CentralAuth cookies and replaced them with an anonymous local session. Not 100% sure this was the issue but seems likely.

(Not an issue in Wikimedia production where the central domain doesn't share a parent domain with anything else.)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Setting $wgCentralAuthCookiePrefix in your MW config for the shared domain would probably work around that. Maybe we should recommend doing that.

Good point, that might be the easiest way of fixing it.

It would be nice to understand why it's happening (maybe some combination of T372703: Set central session ID on the local wiki during SUL3 login and session store lag?), not the most important thing though.

I mentioned this caveat in the docs I wrote at https://www.mediawiki.org/wiki/Extension:CentralAuth#SUL3. I think we can say that this is a configuration error and not a bug.