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