Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira OAuth problem

Mateusz Kowalski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 2, 2022

Hi,

I try connect to Jira using OAuth 

We use this one instruction to generate token.

https://developer.atlassian.com/server/jira/platform/oauth/

 

After that everything looks good because we have a good response when using OAuthTutorialClient-1.0.jar:

admin@DK-SRV-JIRA-TEST-AP:~/atlassianlabs-atlassian-oauth-examples-dd0264cad043/java/target$ sudo /opt/atlassian/jira/jre/bin/java -jar OAuthTutorialClient-1.0.jar request https://testjira.3shape.com/rest/api/2/issue/ITHD-42726/

 

but from the same server when we use curl we are unauthorized:

admin@DK-SRV-JIRA-TEST-AP:~$ sudo curl -X GET --header "Authorization: Bearer "8EhGdw9RQJgPo24XXXXXXXXXXXXXXX"" "https://testjira.3shape.com/rest/api/2/issue/ITHD-42726"
{"errorMessages":["You do not have the permission to see the specified issue.","Login Required"],"errors":{}}

 

Do you have any idea what is wrong? 

OAuthTutorialClient-1.0.jar must be stored in a specific place in Jira folders?

 

BR Mateusz

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer