We are trying to display some wiki articles from our internal wiki on our external portal.
We are able to retrieve the content of wiki pages using:
/bin/get/whatevername/WebHome?basicauth=1
This gives us back the raw HTML of the page, which is great.
However it does not allow us to retrieve images.
It seems that images can not be retrieved using Basic Auth.
We have tried using the following url: /download/whatevername/WebHome/123456789.png?basicauth=1
but it doesn’t work, we either get asked to authenticate again or an error. Is this the wrong url? Or is there another way we can retrieve images using basic auth.
I just tried and basic auth works fine with /download/ action too for me.
The URL looks right (if the attachment is located on whatevername.WebHome page). If you are not sure, go to the Attachments tab on the bottom of the page and click on the attachment to get the URL. Then replace any parameter (you might have the version for example depending on the version of XWiki) with basicauth=1 in the URL.