Hi.
We are serving a readonly wiki with a proxy. The proxy logs in the wiki with the “ReadonlyProxy” with only reading rights.
With 13.10.6 we used a login with user and password in url as described in https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Authentication/#HBasicAuthentication.
https://ReadonlyProxy:password@example.org/xwiki/bin/view/Main/WebHome?basicauth=1
That didn’t work with 15.10.10. So we looked at xwiki-platform/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/impl/xwiki/MyBasicAuthenticator.java at 2eeb08c8213e97e01855e71b9a433f5cd8e7c58c · xwiki/xwiki-platform · GitHub and decided to set the headers with user and password.
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $wikiUser. ":" . $wikiPassword);
That worked for some time. Currently it does not work. (At the moment we are at 15.10.11 but I’m not sure if the working status was with 15.10.10 or 15.10.11 already.) Currently we are always redirected to microsoft (as our default login is via oidc on azure).
What is the right way to do basic auth?
Regards, Simpel