Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to access SSO enabled JIRA Sever using Rest APIs

Hi 

I'm trying to access JIRA resources using Rest APIs

Its a JIRA Server where SSO is enabled

the end point I have used is : https://[siteURL]/jira/rest/api/latest

I have used basic authentication and I see a 404 error

 

can someone please help me if there are any additional steps needed to be done like creating any API tokens or as an administrator enable Rest APIs. 

 

Thanks in Advance

3 answers

0 votes
Hana Kučerová Community Leader Feb 23, 2021

Hi @Sai Segu ,

welcome to the Atlassian Community!

Would you please us more information, which resources are you trying to access? What you are trying to do?

This basic URL won't work, you need to find correct endpoint...

See here for more information...

Thanks for the answer.. Right now I want to start off with just being able to authenticate to the SSO enabled JIRA Server and I have no success so far. 

I have tried:

http://host:port/context/rest/api-name/api-version/resource-name which in my case I assumed is https://[siteURL]/jira/rest/api/latest and also https://[siteURL]/jira/rest/auth/latest. None of them worked

Hana Kučerová Community Leader Feb 25, 2021

Hi @Sai Segu ,

if you want to do some sort of test like this, try getting all projects which are visible for your user:

GET /rest/api/2/project (or GET /rest/api/latest/project)

Hello @Sai Segu 

You can use the add-on mO API Token/OAuth Authentication for Jira to use either OAuth 2.0 or API Tokens to authenticate your REST APIs.

It's really easy to set up with any other provider which you might be using for SSO. You can use the guides provided on the link below to set it up.

https://plugins.miniorange.com/jira-rest-api-setup-guides 

Also, if you have any questions regarding it, you can reach out to info@xecurify.com

PS: I work for miniOrange, Top Atlassian SSO Vendor! 

I hope this helps you! :)

Thanks @Mahima Bothra . But I'm looking for some solutions that costs nothing. Not sure if that is doable. 

0 votes
Daniel Ebers Community Leader Feb 27, 2021

Hi @Sai Segu

if the most basic endpoints that Hana mentioned

GET /rest/api/2/project (or GET /rest/api/latest/project)

fail in your scenario you need to work out on how SSO is implemented in your Jira instance.
Installations which I have seen and which make use of SSO integrations allow REST API access without any trouble - meaning without any 404 pages coming up.

In first step I would try to find out which implementation of SSO is in use (there are several apps as well as open source solutions), then to determine how it is configured, if REST API access is possible in general.
In case you did not install it yourself getting in contact which subject matter experts on the authentication/SSO setup.

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you