Jump to content

Topic on Manual talk:Bot passwords

Bot user created on BotPasswords access denied by img_auth.php

3
Seanchen (talkcontribs)

Hi,

I am running a private wiki on version 1.28. I have created bots on Special:BotPasswords page to access my private wiki through Action APIs.

Everything works fine except the bot users got denied by img_auth.php.

Is there any walk around on this issue?

Also, does Action APIs (/w/api.php) through bot users have the same RequestContext with the normal user?


Thanks,

-Sean

Tgr (talkcontribs)

img_auth is not part of the API so bot passwords do not work there. It is probably possible to hack your way around it via authentication hooks or whatnot, but I don't think there's a nice solution (other than writing an API for getting the images, which I imagine will happen eventually via T66214, but "eventually" might be a long time).

RequestContext works the same way for bot passwords.

Seanchen (talkcontribs)

@Tgr Thanks for the reply!

I my case here, I have all media files stored on AWS S3. So it is easier to fetch media directly from S3 as a quick walk around.

Reply to "Bot user created on BotPasswords access denied by img_auth.php"