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
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
- Status Code: 200 OK
- Content-Encoding: gzip
- Content-Length: 1029
- Content-Type: text/html;charset=UTF-8
- Date: Thu, 12 Mar 2015 13:35:42 GMT
- Server: Apache-Coyote/1.1
- Set-Cookie: JSESSIONID=9F60DAB58471A21F6E25BAD4F6A74F33; Path=/ccm/; Secure; HttpOnly JazzFormAuth=Form; Path=/ccm; Secure x-com-ibm -team-scenario=38e61c75-9ed4-4d10-b5e3-32e4cc1222bf%3Bname%3DInitial+Page+Load%3Bextras%3D%2Fccm%2Fauthenticated%2Fidentity%2C1426167342257; Path=/
- X-com-ibm-team-repository-web-auth-msg: authrequired
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"