SUL2 uses login.wikimedia.org; SUL3 will use a different central domain per T363695: Create a Wikimedia login domain that can be served by any wiki. That means during rollout, when we switch a user from SUL2 to SUL3, they would lose their central session (though not any of their already existing local sessions). Which is not a huge deal but it would be nice to avoid by copying the SUL2 domain session to the SUL3 domain session. That could also be used to prevent the two domains ending up with sessions for different users and causing weird behavior if e.g. we don't roll out on all wikis at the same time (again not a huge deal but nice to have).
There are two (hopefully) easy ways to do it:
- Use central autologin - make sure that when we are doing edge login in SUL2 mode, the SUL3 domain is added to the list of autologin domains (and the relevant endpoint is enabled on the SUL3 SSO domain). Maybe the same in the other direction as well. Make sure edge login is triggered (or maybe just wait long enough).
- Use central login - instead of triggering it after (SUL2) login, find a way to trigger it when the user has a local session but no SUL3 central session.
The first seems both simpler and safer, although more likely to be prevented by browser restrictions (as edge login uses subresource requests for cookie access while central login uses top-level ones).