Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do I get "JSESSIONID" to pass that as a parameter in the command.

We have a requirement to integrate IBM forms and RTC and covert the requirements as a RTC work item. IBM form supports REST API and we are planning to use RTC rest/OSLC rest API commands to achieve the same.
 
While we could extract the details from RTC, but when we update / create workitems in RTC, we hit with following error.
 
"errorMessage": "The user has the roles required to perform this operation, but the permission has been denied because this request might have been forged by a malicious website. To prove that this request is not part of a CSRF attack add a new HTTP header with the name 'X-Jazz-CSRF-Prevent' and use the current JSESSIONID value as the value."
 
Help needed: How do I get "JSESSIONID" to pass that as a parameter in the command.
 
Appreciate your help to resolve this issue.

0 votes

Comments

I have the same question too :(



One answer

Permanent link

The JSESSIONID is one of the cookies of the web session. Whatever you use for the integration, can you access to the cookies of the web session? If yes, just read it. Otherwise I can't think of any methods.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: May 03 '17, 6:28 a.m.

Question was seen: 2,886 times

Last updated: May 04 '17, 2:41 p.m.

Confirmation Cancel Confirm