Feed authentication - Jenkins token
I'd like to add a feed to Zeal that includes authentication information, specifically a username and API token for Jenkins, so that Zeal will fetch the last successfully built output from the Jenkins server.
With 'wget' it's possible to download the feed file from Jenkins (2.118) using the following options:
wget --auth-no-challenge --http-user=$USERAME --http-password=$API_TOKEN https://$FEED_URL
I've tried adding the feed URL in Zeal as follows, but always get a "server replied: Forbidden" error: https://$USERNAME:$API_TOKEN@$FEED_URL
Note that without the --auth-no-challenge option, wget also returns a 'forbidden' error. The help info is:
--auth-no-challenge send Basic HTTP authentication information
without first waiting for the server's
challenge
Since authentication will also be required for the docset tgz file, passing the authentication details via the URL is anyway not a good solution. Perhaps adding username and password information to the 'Add feed' window would be a better one.
Basic auth should work, will investigate.
Although there may be a need for separately provided credentials, after the server requests authentication.
I think the problem here is password not being decoded properly, as described in the QUrl::setPassword docs.