Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
seaChris opened this issue Dec 8, 2023 · 1 comment
Open

Comments

@seaChris
Copy link

seaChris commented Dec 8, 2023

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

@cgt
Copy link
Owner

cgt commented Dec 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants