-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin cannot retreive data from password-protected Jenkins #2
Comments
Hi, On the gadget side, authorization possibilities are very limited (OAuth and Signet methods), see https://developers.google.com/gadgets/docs/reference/#gadgets.io.makeRequest Jenkins remote API supports HTTP basic authentication only, see https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API So there is not any way for now how to implement this feature. OAuth support on Jenkins REST API is missing. |
Ok, I thought it might get complicated when it comes to authorization. Thank you for giving the analysis on the underlying details. I will use the Jenkins gadget as it is now and try to get around the security limitations in some other ways. Maybe it is possible to just forward the build outcome from the secured Jenkins instance to some public Jenkins which acts only as the "reporting" instance. You can close this issue if you see that it is not possible to "fix" it. |
Latest review for the plugin brought me some idea how to implement this feature. |
+1 for this feature, we have Jenkins secured as well. The basic auth solution would be great! |
+1 |
I got it working by using this as the base url: http://AUSER:[email protected] |
Passing the Username and password in the URL doesn't work for SAML enabled Jenkins instances. We need some other solution. |
same issue here: adding username/password to URL doesn't fix authentication. Maybe info in http://stackoverflow.com/questions/33508417/jenkins-json-rest-api-with-cors-request-using-jquery might help? |
i have the same issue, the work around with adding the Password to the url does not work, i.e. if i do this: curl -sf -X POST 'https://username:password@{jenkins_url}/{job_url}/api/json?nocache=1549898837' then i get the correct result, |
Thank you for a nice gadget, however there does not seem to be a way to fetch the build status when the anonymous user is blocked by the security rules. So it would be a nice enhancement if there would be a way to get the build information as another user than the default "anonymous" user.
The text was updated successfully, but these errors were encountered: