Closed bruinsg closed 11 years ago
Thanks for your report. We don't have a need for this feature, so you would have to provide at least a proper pull request. I think it would be enough if you read the authentication information from some environment variables.
Feel free to reopen if you can provide a pull request.
We are running a MediaWiki behind a Apache Reverse Proxy that authenticates users and passes this information to MediaWiki. When trying to setup Collection extension I was unable to pdf to render as it was unable to connect. These are some steps I took:
In the end I checked the code and found that the ssl connection is build up without supplying the username and password. The username and password are used only to connect in the API login call.
This was easily fixed by adding the password manager to the build_opener, now the connection can opened and the API can be reached. See my HARD CODED (sorry) solution below, I think this can be generally adopted as the password manager only is used when required.