How to login to JAZZ Team Server using REST Client.
Hi,
I want to login to JAZZ TEAM SERVER, using the rest client. I give the URI https://localhost:9443/ccm/ in the browser address l will get pop for credentials I want to do this using REST Client addon in firefox browser. when I gave URI https://localhost:9443/ccm/ in the rest client URL, I got the response
How to pass the user credentials to JAZZ Team Server and log in using REST Client. I was not able to find a way to do that using REST Client. Please Help. Regards Aju |
2 answers
There's a great example on the jazz.net wiki. Here's the example:
COOKIES=./cookies.txt USER=username PASSWORD=password HOST="https://localhost:9443/jazz" curl -k -c $COOKIES "$HOST/authenticated/identity" curl -k -L -b $COOKIES -c $COOKIES -d j_username=$USER -d j_password=$PASSWORD "$HOST/authenticated/j_security_check" # If this line returns the JSON representation of work item 1, authentication was successful #curl -k -b $COOKIES "$HOST/oslc/workitems/1.json" Comments
Aju Samuel Raju
commented Mar 12 '15, 10:48 a.m.
Hi Evan,
Kevin Ramer
commented Mar 12 '15, 10:54 a.m.
Do you mean the RESTClient browser add-on ? If so, login via browser, then go to the rest client addon. There are other authentication examples provided using Perl scripts you can find in this site.
I'm not sure what you mean by "REST client". You can use the REST APIs from a programming language of your choice, using the flow described in the link. |
You said:
"I want to do this using REST Client addon in firefox browser." Just login to the repository as if to visit the repository, then go to the RESTClient and tool around. e.g. look at the root services document, etc. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.