cgt / go-mwclient

A Go package for interacting with the MediaWiki API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

action=login" is deprecated and may stop working without warning.

seaChris opened this issue · comments

2 warnings: [main: Subscribe to the mediawiki-api-announce mailing list at https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/ for notice of API deprecations and breaking changes.] [login: Main-account login via "action=login" is deprecated and may stop working without warning. To continue login with "action=login", see [[Special:BotPasswords]]. To safely continue using main-account login, see "action=clientlogin".] %

Should implement action=clientlogin to the library soon

I don't have plans to add support for this myself since I no longer use the library, but a patch would be welcome. I suggest using OAuth[1][2] for authentication instead, assuming you are writing bot software.

  1. https://pkg.go.dev/cgt.name/pkg/go-mwclient#Client.OAuth
  2. https://www.mediawiki.org/wiki/OAuth/Owner-only_consumers