It's all about the answers!

Ask a question

Authenticating RQM Server using a REST API


srinivasan n (1111) | asked Oct 31 '18, 8:45 a.m.

 Hi,


Is there an article that explains how to authenticate RQM Server through a REST API ?

I'm able to retrieve data using RESTClient when I'm logged in to RQM using Firefox. However, if I try to retrieve data outside of Firefox using a tool like Postman, the request is being redirected to the login page and I'm unable to proceed further.

I've checked this link, but it was not of much help.

It would really help if someone could help me out on this one.

Thanks,
Srinivasan

One answer



permanent link
abhishek gour (3812) | answered Nov 02 '18, 2:39 a.m.
If you are using a browser based REST CLIENT - then looks for authentication option in those client, choose basic authentication and provide user/pass combo and perform the request.
Most of the modern Rest Clients do provide authentication options from the tool to handler authentication cookie method internally. You would just have to use Basic Authentication in that case.

If you want more flexibility with your authentication options - Consider checking this jazz.net forum post -
Also in order to perform POST and PUT you may have to take care of  "X-Jazz-CSRF-Prevent" header issue.

There are plenty of articles and forum posts talking about how to log in using a script, for example the below two.
https://jazz.net/library/article/633
https://jazz.net/forum/questions/140936/curl-get-wi-rtc-403

I hope this simple post would be helpful.

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.