Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

What links should I be using to use Oauth with JIRA Software (cloud)?

This seems to be an obvious question but I have been unable to find the answer

All the documentation I have read points to localhost:8900 but I don't think that is right.

I have assumed that the links should be :

 

requestTokenUrl: "https://mysite.atlassian.net/jira/plugins/servlet/oauth/request-token",

authorizeUrl: "https://mysite.atlassian.net/jira/plugins/servlet/oauth/authorize",

accessTokenUrl: "https://mysite.atlassian.net/jira/plugins/servlet/oauth/access-token"

 

When I call my Oauth plugin it simply comes back with a 404: Page not found error.

What am I missing?

1 answer

0 votes

What documentation are you following?  

I ask because you mention using localhost:8900 which is, as far as I know, never mentioned in the docs - 8900 is not a port any Atlassian software uses, and localhost is always going to be Server, never a Cloud system.

Hi Nic,

This is the page I am trying to use:

https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/

It is the example app.py Python code downloaded from the site:

 

consumer_key = 'oauth-sample-consumer'

consumer_secret = 'dont_care'

 

request_token_url = 'http://localhost:8090/jira/plugins/servlet/oauth/request-token'

access_token_url = 'http://localhost:8090/jira/plugins/servlet/oauth/access-token'

authorize_url = 'http://localhost:8090/jira/plugins/servlet/oauth/authorize'

 

My problem is that I cannot find any definitive reference to the real URLs I should be using.

Ah, I see, sorry.  The sample code you've downloaded contains local links.

I think you need to run through https://developer.atlassian.com/cloud/jira/platform/oauth-2-3lo-apps/ - this tells you how to generate tokens from a Cloud system

Hi Nic,

Thank you for that documentation. I have followed that and I think I have got further but I seem to have fallen at what is hopefully the final hurdle.

Screenshot 2021-04-28 at 21.03.22.pngScreenshot 2021-04-28 at 20.59.22.png

As far as I can tell I have provided a valid scope.

I have set the following permissions:

Screenshot 2021-04-28 at 21.09.49.png

Do you know what I am missing?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Why everyone using Jira must be GDPR-compliant

Did you know that penalties up to 4 % of the yearly company turnover are possible in case of GDPR violations? GDPR regulations are currently mainly relevant for companies in the EU, but countries lik...

100 views 1 3
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