Cannot use basic auth and unsure how to get the necessary OAuth tokens for JIRA Rest API's

Patrick Tsang July 6, 2017

Hi,

I've already read the article: https://community.atlassian.com/t5/JIRA-questions/REST-SSO-Atlassian-Account-JIRA/qaq-p/580736

With the curl command, we cannot set a password because we authenticate to our JIRA instance and our Atlassian accounts through Azure AD. 

We've tried "changing password" in the Atlassian account site but it is unsuccessful because our current password isn't set there and is done through Azure AD.

For the pages I have read, like this one: https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/; application links are setup. However, with the current documentation I am unsure what needs to be entered into the Service Provider Name, Consumer Key and Shared Secret fields etc...

This feels like it's not the correct solution as all I should need for OAuth is a token and a secret key for authentication. Can anyone assist me with this?

Thanks,

Pat

2 answers

1 vote
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 6, 2017

Hi Patrick,

Please follow below steps to set a password for your user account in id.atlassian.com:
1. Go to https://id.atlassian.com/login/resetpassword
2. Enter you email, complete the CAPTCHA and click on Send
3. Once you receive the password reset email, do not click on the button to access, but on the link below that says "reset password".
4. Fill up the new password and you are done.

Also, as regarding the Oauth documentation. As written just below the screenshot:

"doesn’t matter what you enter for the client application details (URL, name, type, etc). This is because we only want to retrieve data from JIRA, therefore we only need to set up a one-way (incoming) link from the client to JIRA."

Therefore you can just enter random values in there (just as shown in the screenshot). What you have to set are the values in the Link applications dialog (point #4).

Finally, in the same documentation page for JIRA Server you also get a sample certificate you can use for testing pourpose and a more practical example is provided. You may want to review that page as well:

https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+OAuth+authentication

 

 

Best Regards,
Dario
Atlassian Cloud Support

 

 

 

Bryce Carr July 6, 2017

The reset password link in the email worked, thanks. We were looking to make PUT requests via Postman, so read-only access via OAuth would not have suited our needs unfortunately.

 

Cheers!

0 votes
Patrick Tsang July 6, 2017

Thanks for the answer Dario. Wasn't so obvious to click on the reset password link for the reset password email lol :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events