MarcoAurelio created this task.
MarcoAurelio added projects: Pywikibot, Pywikibot-login.py.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Steps to replicate the issue**
My bot has a fully unified global account and uses OAuth to authenticate.
Using the `-autocreate` flag on `login.py` doesn't seem to be able to create
and attach a new local account to the global one:
$ pwb login -site:wikiquote:as -autocreate
WARNING: API error mwoauth-invalid-authorization-invalid-user: The
authorization headers in your request are for a user that does not exist here
WARNING: API error mwoauth-invalid-authorization-invalid-user: The
authorization headers in your request are for a user that does not exist here
ERROR: Failed OAuth authentication for wikiquote:as: The authorization
headers in your request are for a user that does not exist here
Not logged in on wikiquote:as.
According to {src PWBC:pywikibot/scripts/login.py} the `-autocreate` flag can
be used to "auto-create an account using unified login when necessary." My bot
does have a fully unified global account.
My user-config.py file has
- `usernames['wikiquote']['*'] = 'bot_name_here'`
- `authenticate['*.wikiquote.org'] = ( ... )`
**What happens?**:
See trace above.
**What should have happened instead?**:
A new local account attached to the global one is created.
**Software version**
WMF Production.
**Pywikibot info/version**
$ python3 pywikibot-core/pwb.py version
Pywikibot: [https] r-pywikibot-core (49a9316, g17787, 2023/02/02, 13:17:54,
stable)
Release version: 8.0.0
setuptools version: 66.1.1
mwparserfromhell version: 0.6.4
wikitextparser version: n/a
requests version: 2.28.2
cacerts: ***redacted***
certificate test: ok
Python: 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110]
Thank you.
TASK DETAIL
https://phabricator.wikimedia.org/T328846
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: MarcoAurelio
Cc: Aklapper, pywikibot-bugs-list, MarcoAurelio, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt,
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]