How to use Jira rest api if it uses SAML and SSO

Problem with using Jira rest API. I want to hit the jira and has to get the issues,scenarios from jira through java standalone.

My company using Jira with SAML and SSO. If I directly pass jira url and with the basic credentials to the jira rest api it throws "peer not authenticated" exception.Caused by: peer not authenticated. when I mouse hover on the JIRA link in my company website it shows the following url.

Can some one help me on this how to use jira rest api for this problem? Thanks in advance

1 answer

0 vote

I think you need to start with a look at how you have implemented SAML and SSO - what is that expecting incoming connections to do to provide user authentication?

When I click on JIRA  it calls the action with post method along with SAMLResponse text and Relaystate as a hidden variables.Like this <form method="post"action="">.

Through browser i can able to get the JSON response from JIRA rest api 

Ok, so your REST call needs to pass the same tokens that your browser is.

Need to add SAMLResponse at the end of rest call?

 Like :/rest/agile/1.0/SAMLResponse_tokens



Do you have the solution now, actually I need the same scenario as you asked earlier replies, can you please provide me the details how you achieved this. Thanks in advance.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,342 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot