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
Warnings: Deprecated MediaWiki API calls (login, token) #65
Comments
Remarks/proposals for solutions:
For details see https://www.mediawiki.org/wiki/API:Login |
See issue robinkrahl#65 To be compliant to future changes of MediaWiki versions, the login procedure first gets a login token. The login action has changed from "login" to "clientlogin". Login is only executed if not yet logined.
Regarding "Main-account login via action=login is deprecated and may stop working without warning." a question might be "When the old login method will be turned off?" |
This enhancement has been published with version 0.5.1. |
@Hasenlaeufer Hello,
and I get a valid 2.1) I then try the HTTP POST and the POST BODY was {
"lgpassword" : "xxxxx",
"lgtoken" : "xxxxx"
} But I get an error: {
"error": {
"code": "notoken",
"info": "The \"token\" parameter must be set."
},
"servedby": "mw1228"
} If I try to change 2.2) I have then tried the old method i.e. and the same POST BODY I then get {
"warnings": {}
},
"login": {
"result": "NeedToken",
"token": "xxxxx+\\"
} where the docs here states that
but I have passed the |
It's not a JSON body (i.e, a
not as
PS: I know i's an old post, but it's on the first page in a Google search for the error message. |
LrMediaWiki Version 0.5, MediaWiki versions 1.27.1 and 1.29/wmf.3. If logging is enabled (see configuration: "Enable logging"), the log file states deprecated MediaWiki API calls:
Should be labeled as an enhancement.
The text was updated successfully, but these errors were encountered: