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 do I create an OAuth token to use the JIRA REST api

I am trying to create a token so I can use the JIRA REST api in a script.  However, every link I found on Atlassian help site, the link is broken for the sample code to generate the OAuth token. 

 

https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-oauth-authentication-6291692/

These two links on this website is broken:

rest-oauth-client-1.0.one-jar.jar

rest-oauth-client-1.0-sources.jar

 

Is there some other link I can use?

Thanks in advance!!!

 

3 answers

1 accepted

2 votes
Answer accepted
Shaun S Atlassian Team Apr 09, 2018

Hi Keav,

 

The updated tutorial for for creating an OAuth client in Java can be found here (link).  In short, you'll be building the jar file with resources provided by this Bitbucket repository (link). I went through the steps of the tutorial and confirmed that they are working so this should do the trick!

I've been banging my head on the wall , trying to get anything on same other than those links. while bitbucket integration works fine. For Jira and confluence there is no clear guide. I am struggling to find a way to enable oauth in my atlassion or JIRA account. does anyone know how and where i get an option to do that ?

-saurabh

Like # people like this

I have been struggling to get the jar files to run. No matter what I do I get maven errors at compile time and it has been extremely frustrating. Is there really no other method to get my access token? I am trying to create an app that any authorized user can use Oauth and call the jira api to grab information about our projects.

Please any help would be greatly appreciated.

 

-Matt

The nodejs sample is broken too ... I looked at using that and it comes with out a package.json so you basically have to guess which versions of the various packages to use and no the latest versions of express does not work with the sample!

Surely this is a common enough workflow that it should have good documentation and up to date examples that can be copied ... now off to install JDK - to use with the java example!

We used to have a script that would tag our tickets with which version they were fixed in as part of our CI jobs, but this was broken for us by the change from basic auth to oauth - I tried with API keys, but that doesn't seem to work either :( 

Like Mark de Bont _TMC_ likes this

Hi. Im note sure if this might be the right place to ask, but its just so overwheling heavy documentation and many places to start with...

 

Im too looking for details on the OAuth integration with Jira Cloud+Server REST API.

However, i need that for an external App which any user is able to use to connect with its own Jira instance for interacting with Jira.

All i can read about OAuth, it would require a manual interaction of an Jira *Admin* to create an Consumer Token first, before any further step can be done.

How would that work in real life, when this is an open available app, ready to be used for anyone with any Jira instance. Usually by endusers who do not have Admin privileges within Jira.

So far, i used Basic Auth and/or API Token to enable the user access to his Jira REST API.
But now with OAuth... How?

Is there any documentation, samples, ... on how to fully integrate an external APP seemless with Jira Rest API - *without* the need of a pregenerated Token by any Jira Admin?

BTW: Im talking about the thirs party app: https://github.com/ljay79/jira-tools

Thanks for the links Shaun, this is something that I'm just starting to look into doing on our platform.

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