HomePhabricator

Allow pywikibot to authenticate against a private wiki.

Authored by Daniel Barrett <dbarrett@blazemonger.com> on Jun 26 2017, 4:31 PM.

Description

Allow pywikibot to authenticate against a private wiki.

Currently, pywikibot cannot authenticate if MediaWiki is configured
to require logins in order to read. This patch takes an approach
suggested by user @zhuyifei1999 in ticket T153903. It tells
pywikibot not to require the parameter "meta=userinfo" if
'tokens' in present in parameter 'meta' and 'login' is present in
parameter 'type'.

Bug: T153903
Change-Id: I55768b735dbddcf35dbb35b94e9ba493621ff51b

Details

Event Timeline

Daniel Barrett <dbarrett@blazemonger.com> committed rPWBCd12f60b735e0: Allow pywikibot to authenticate against a private wiki. (authored by Daniel Barrett <dbarrett@blazemonger.com>).Jun 28 2017, 3:05 PM