It's all about the answers!

Ask a question

Calling REST service on JTS Form Based authentication


Milan Krivic (98013176143) | asked Feb 20 '17, 6:23 a.m.

 Hi,


we have developed some kind of java appliaction for calling REST service for automatic creation of work items on Jazz Team Server.
Well, we stucked on the part of app authentication.

On our CLM system, we are using form based authentication, and we would like to change it to basic authentication for easier implenentation.
Can anyone explain the process of changing it, and is there maybe example of java code for form based authentication?
What impact of changing authentication type for applications should CLM occur?

I saw the following article:


and it is explained that specific application settings must be changed, am I right?

So if this is true, jazz/ccm.war property is going to be changed?

One answer



permanent link
Donald Nong (14.5k614) | answered Feb 20 '17, 6:47 p.m.

You're making things complicated by talking two things together at the same time.

With form based authentication (the default), there are proven ways to authenticate in scripts/codes. It will be similar to the below script.
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2#Appendix_A

If you do decide to switch to Basic Auth, you only need to make a small change in your code.

To use all the script examples in this document with Basic Auth, you would typically replace
"-b %COOKIES%" with
"-u <user:password>" .

https://jazz.net/library/article/633

Your answer


Register or to post 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.