zeal icon indicating copy to clipboard operation
zeal copied to clipboard

Feed authentication - Jenkins token

Open gmphillips opened this issue 7 years ago • 3 comments

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.

gmphillips avatar Apr 27 '18 14:04 gmphillips

Basic auth should work, will investigate.

trollixx avatar May 27 '18 01:05 trollixx

Although there may be a need for separately provided credentials, after the server requests authentication.

trollixx avatar May 27 '18 01:05 trollixx

I think the problem here is password not being decoded properly, as described in the QUrl::setPassword docs.

trollixx avatar Oct 27 '18 17:10 trollixx