I just read it was discussed at https://phabricator.wikimedia.org/T142269 and documented in https://www.mediawiki.org/wiki/Manual:Pywikibot/OAuth/Wikimedia in the last day. I guess I should have followed links more closely.
> I don't know if, when using OAuth, the usernames['project']['lang'] = > u'BotName' should still be used though, but that's the only way I > could manage to log in. This is also what I do. It is convenient for me because I can choose a few wiktionaries that I want to log in while giving a blanket authentication with "authenticate[*.wiktionary.org]". -Yusuke On Sun, Aug 7, 2016 at 9:21 PM, MarcoAurelio <[email protected]> wrote: > Hello Yusuke, > > Thank you for your email. > > Everything you mention is already done. I've managed to log-in adding > to the user-config.py the former usernames['project']['lang'] = > u'BotName', in addition to the authenticate ['*.wikimedia.org'] = > ('keys here'). > > I don't know if, when using OAuth, the usernames['project']['lang'] = > u'BotName' should still be used though, but that's the only way I > could manage to log in. > > Best regards, M. > > 2016-08-07 14:17 GMT+02:00 Yusuke Matsubara <[email protected]>: >>> I've tried to log in using OAuth, unsuccessfuly. >> >> At which step does it fail? Any error message? >> >> I have been using OAuth for months. Initial pitfalls for me were: >> >> * Make sure being logged into your bot account in the browser when >> performing OAuth registration. >> * Before trying to log in with OAuth, bot needs to be logged out. Use >> "pwb.py login -logout", or perhaps clear cache files under .pywikibot >> (but be careful to not delete config files). >> * You will need to check "This consumer is for use only by <your >> name>." on Special:OAuthConsumerRegistration/propose. >> * You will also need to check relevant items under "Applicable grants:" >> >> (Context for others: OAuth login seems to work as a workaround for >> this login breakage.) >> >> -Yusuke >> >> On Sat, Aug 6, 2016 at 9:05 PM, MarcoAurelio <[email protected]> wrote: >>> I've tried to log in using OAuth, unsuccessfuly. I've followed all the >>> steps of the on-wiki documentation and have indeed the latests release >>> of pywikibot-core. Any hints? Thanks, M. >>> >>> 2016-08-06 9:38 GMT+02:00 Legoktm <[email protected]>: >>>> Hi, >>>> >>>> Please review/test/merge <https://gerrit.wikimedia.org/r/303342>. >>>> >>>> I am afk most of tomorrow, so if someone else wants to handle >>>> backporting it to 2.0 and releasing it, that would be appreciated, >>>> otherwise I'll do it once I'm back. I don't believe I have permissions >>>> to push it to pypi though. >>>> >>>> -- Legoktm >>>> >>>> _______________________________________________ >>>> pywikibot mailing list >>>> [email protected] >>>> https://lists.wikimedia.org/mailman/listinfo/pywikibot >>> >>> _______________________________________________ >>> pywikibot mailing list >>> [email protected] >>> https://lists.wikimedia.org/mailman/listinfo/pywikibot >> >> _______________________________________________ >> pywikibot mailing list >> [email protected] >> https://lists.wikimedia.org/mailman/listinfo/pywikibot > > _______________________________________________ > pywikibot mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/pywikibot _______________________________________________ pywikibot mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot
