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

Jazz and REST Client

 Hey everyone,

I want to consume Jazz resources using a REST Client like POSTMAN or Google Chrome add-on, how can authorize the REST Client to access Jazz ?
Thanks  

0 votes


Accepted answer

Permanent link
For option 3, in Jim's answer, this has worked for me to use Postman 7.0.7 to login to an application with public uri https://localhost:9443/<APP>, where <APP> is jts, ccm, qm: 

Request
POST https://localhost:9443/<APP>/j_security_check

Request Header

Accept:*/*
OSLC-Core-Version:2.0
X-Requested-With:XMLHttpRequest
Content-Type:application/x-www-form-urlencoded
Cookie:
Request Body (use raw)
j_username=<userid>&j_password=<userpassword>

Where <userid> is the user ID e.g. user1
<userpassword> is the users password e.g. password123

E.g. j_username=user1&j_password=password123

Once authenticated subsequent requests (even in another tab) contain the required cookies and session ID's.
Save the request and it is easy enough to use.

Ahmed EL-BERDHI selected this answer as the correct answer

0 votes

Comments

No guarantee that this is the minimum headers. Eclipse Lyo uses these hearers and they work.


3 other answers

Permanent link

There are three different Postman applications:

1. A Chrome extension "Tabbed Postman - REST Client" https://chrome.google.com/webstore/search/coohjcphdfgbiolnekdpbcijmhambjff runs in a Chrome tab.

2. Postman 5.5.4 is a (deprecated) Chrome APP that can use the Postman Interceptor 0.2.24 Chrome extension to share browser state information between Chrome and Postman.

3. Postman 7.0.7 is a standalone app: https://www.getpostman.com/downloads/. This requires you to know the details of how to login, and manage the credentials and cookies yourself. Powerful, but not very convenient.

1 and 2 allow you login to login to the CLM application with the Chrome browser, and then use the authentication tokens with Postman. This is very convenient, but may introduce security issues, and the deprecated Chrome app may be withdrawn at some point. 

1 vote


Permanent link
You can also use a valid certificate for free: https://letsencrypt.org/

Cheers,
Andrew
(Eclipse Lyo project lead)

1 vote


Permanent link

 Thank you for your responses, i tried to follow the instructions but still dont work ..

Got this error :
Could not get any response
There was an error connecting to https://localhost:9443/jts/j_security_check.
Why this might have happened:
  • The server couldn't send a response:
    Ensure that the backend is working properly
  • Self-signed SSL certificates are being blocked:
    Fix this by turning off 'SSL certificate verification' in Settings > General
  • Proxy configured incorrectly
    Ensure that proxy is configured correctly in Settings > Proxy
  • Request timeout:
    Change request timeout in Settings > General

0 votes

Comments

You can not even connect your server. Find out the public uri root of your server . You use the public uri root to connect. If you know that and can login with a browser, you can try the next steps.


Also note that you might have to change the SSL settings in postman to be able to work against your server, if your certificate is invalid.

The error is related to SSL certificate verification being on.

  • Self-signed SSL certificates are being blocked:
    Fix this by turning off 'SSL certificate verification' in Settings > General

 Thank you :)

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
× 11,043
× 7,577
× 1,721
× 485
× 62
× 36

Question asked: Apr 19 '19, 9:08 a.m.

Question was seen: 5,245 times

Last updated: Jul 17 '19, 9:41 a.m.

Confirmation Cancel Confirm