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

How to generate oauth tokens for JIRA user?

Joseph Simon Arokiaraj June 18, 2015

Hi All,

I am new to Atlassian products doing POC. Could you please tell me the steps to generate oauth token for JIRA users so that the token can be used to login to JIRA to create the issues programmatically?

Cheers,

Simon

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 18, 2015

Hi Joseph!

 generate oauth token for JIRA users

OAuth Request and Access tokens are returned by Service provider (i.e. JIRA). Probably you want to generate public and private keys:

openssl genrsa -out jira.pem 1024
openssl rsa -in jira.pem -pubout -out jira.pub

This diagram shows OAuth flow: http://oauth.net/core/diagram.png

Java OAuth client tutorial: https://developer.atlassian.com/jiradev/api-reference/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-oauth-authentication BTW you can use rest-oauth-client-1.0.one-jar.jar in your application.

More samples: https://bitbucket.org/atlassian_tutorial/atlassian-oauth-examples

TAGS
AUG Leaders

Atlassian Community Events