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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,462,699
Community Members
 
Community Events
176
Community Groups

OAuth 2.0 Authorization Code Error

Hello! I'm trying to set up OAuth 2.0 for a script that makes calls to the Jira API. I'm running a local Jira Server instance at http://localhost:2990/jira, and using the Authorization Code flow on this page.

I set up my application link like this:

Application Link Screenshot.png

And got the credentials.

Credentials Screen Screenshot.png

Then I went into my browser and went to the following URL (encoding the redirect URI via an online tool, but I'm not sure if that step was necessary):

http://localhost:2990/jira/rest/oauth2/latest/authorize?client_id=65d4b12a43d6f9fe52a95ce5493e321e&redirect_uri=http%3A%2F%2Flocalhost%3A2990%2Fjira&response_type=code&scope=WRITE

If I understand correctly, this should take me to a screen where I can give permission for the client to use my Jira account. However, I get redirected to the following URL:

http://localhost:2990/jira/plugins/servlet/oauth2/consent?client_id=65d4b12a43d6f9fe52a95ce5493e321e&redirect_uri=http://localhost:2990/jira&response_type=code&scope=WRITE

And see the following screen:

Error Screen Screenshot.png

I also tried going through the same steps but using http://localhost:2990/jira/plugins/servlet/oauth2/consent as the redirect URI (both in the application link setup and in the query parameter for the URL I entered), but I got the same result.

This is my first time setting up OAuth, so I'm unfamiliar with how to implement it. Could someone help me understand what I'm doing wrong? 

Thank you very much!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events