- For operating on MediaWiki or Test Wikipedia, both of which seems to have OATHAuth extension, it looks like we need to refer to the complex example. Is that correct?
- If the above is true, then I’ve two more related questions:
- example for clientlogin (as documented here works fine without providing any captcha related info and I am not sure why.
- Looks like we may need to fetch information for fields from the authmanager module, https://www.mediawiki.org/w/api.php?action=query&meta=authmanagerinfo&amirequestsfor=create. How do we pull captcha related info? As per the field output (shown below), I am not sure what to check against what.
{
"id": "CaptchaAuthenticationRequest",
"metadata": {
"type": "image",
"mime": "image/png"
},
"required": "required",
"provider": "CaptchaAuthenticationRequest",
"account": "CaptchaAuthenticationRequest",
"fields": {
"captchaId": {
"type": "hidden",
"value": "1553503948",
"label": "CAPTCHA ID",
"help": "This value should be sent back unchanged."
},
"captchaInfo": {
"type": "null",
"value": "/w/index.php?title=Special:Captcha/image&wpCaptchaId=1553503948",
"label": "To help protect against automated account creation, please enter the words that appear below in the box ([[Special:Captcha/help|more info]]):",
"help": "Description of the CAPTCHA."
},
"captchaWord": {
"type": "string",
"label": "CAPTCHA",
"help": "Solution of the CAPTCHA."
}
}
},