user1918255
user1918255

Reputation: 99

How to use web request if Jenkins using SSO plugin?

I'm using a C# web request that retrieves some data from Jenkins API (e.g. getting slave names using a request based on http://hostname:port/computer/api/xml?xpath=computerSet/)

Till now I used it where I provided username and password for web requests (assuming that users use Jenkins with built-in users mechanism).

Now I have a Jenkins user who installed OpenID plugin with SSO (https://wiki.jenkins-ci.org/display/JENKINS/OpenID+plugin) and I'm wondering if I should send username and password in web request (does not work), just leave it empty or anyhthing else?

Please advice

Upvotes: 2

Views: 1151

Answers (1)

Jocce Nilsson
Jocce Nilsson

Reputation: 1748

You can use the API token which is in your personal page in Jenkins.

See Jenkins documentation on the subject

Upvotes: 2

Related Questions