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

Jira Rest Api Oauth

tue2code I'm New Here Monday

I tried to follow this OAuth tutorial to authenticate my .Net core application to use JIRA rest API. I am unable to get the request token. Below are my code snippet. I used Oauth.DotNetCore package and Restsharp to send the post method of the request token but receive 500 response from the server. Not sure how to go from here. Please help. I have attached the screenshot of the snippet of my code and server response.

 

Screen Shot 2019-12-03 at 10.38.44 am.pngScreen Shot 2019-12-03 at 10.32.44 am.png

1 answer

0 votes
Dario Bonotto Atlassian Team 8 hours ago

Hello @tue2code ,

Welcome to the Atlassian Community!

I may not be the best person to answer this question, however, please notice that you are following the documentation for Jira Server while it is my understanding that you are using Jira Cloud instead.

The documentation for Jira Cloud is the below one  (and it is slightly different than the one for JIRA Server):

Can you kindly review above pages (and code samples) and let us know if you still have issues?

 

You may also want to review the below links since they contain more details and some code samples (not in .Net unfortunately):

 

 

Finally, for the future, please notice that this might not be the best place to get help on development  related questions. In case further help will be needed on this topic, you might want to ask the developers community instead, or open a ticket in the developers service desk:

Hi Dario, 

 

Thank you for the reply. I have manged to solve the problem. Turns out the Oauth version is 1.0 instead of 1.0a. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

[New] Jenkins for Jira Software Cloud and a way to connect your hosted apps

Jenkins is the leading open-source automation server used by startups and enterprise teams to build, test and deploy code to production.   We are excited to announce an official integration betw...

2,065 views 1 19
Read article

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