Page MenuHomePhabricator

Investigate/Implement Family.cross_projects
Closed, DeclinedPublic

Description

Family.cross_projects is implemented in compat, but not in implemented in core.

It indicates when to use the central auth tokens during login on a new site.

Details

Related Changes in Gerrit:

Event Timeline

jayvdb raised the priority of this task from to Low.
jayvdb updated the task description. (Show Details)
jayvdb added a project: Pywikibot.
jayvdb added subscribers: Ricordisamoa, gerritbot, jayvdb and 3 others.

Fwiw, the Family variables cross_projects_cookies and cross_projects_cookie_username are not needed as-is, since CentralAuth has a paramter $wgCentralAuthCookiePrefix for the prefix and the suffix are all hardcoded.
So, only one variable, the prefix, needs to be defined per family. However we could use these existing variables to deduce the prefix, and deprecate the existing variables.

Change 219613 had a related patch set uploaded (by John Vandenberg):
Update WikimediaFamily cross_projects

https://gerrit.wikimedia.org/r/219613

Change 219613 merged by jenkins-bot:
Update WikimediaFamily cross_projects

https://gerrit.wikimedia.org/r/219613

Xqt subscribed.

I think cross_projects implementation can be removed completely:

de = pywikibot.Site('de')
de
APISite('de', 'wikipedia')
en = pywikibot.Site('en')
en
APISite('en', 'wikipedia')
de.logged_in()
False
en.logged_in()
False
de.login()
Password for user <redacted> on wikipedia:de (no characters will be shown): Warning: Password input may be echoed.
<redacted
WARNING: C:\Python\Python313\Lib\getpass.py:99: GetPassWarning: Can not control echo on the terminal.
  return fallback_getpass(prompt, stream)

Du musst deinen Anmeldeversuch verifizieren. Ein Verifizierungscode wurde an
deine E-Mail-Adresse (***@***.***) versandt. Bitte gib hier diesen Code ein.
Verifizierungscode: Warning: Password input may be echoed.
<redacted>
de.logged_in()
True
en.logged_in()
False
en.login()
en.logged_in()
True