Forums

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

Is some special access needed for Basic Authentication

shubham
Contributor
June 7, 2019

I have an URL which is resulting in JSON output when I run it in browser, while being logged in in JIRA.

 

But below mentioned curl command is returning "Unauthorized".

Is there some special access needed to be able to do basic authentication in Jira with my username and password.

curl -u username:password -X GET -H "Content-Type: application/json" https://xyz.atlassian.net/rest/api/latest/search?jql=project=DT

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 10, 2019

Hello Shubham,

I think this my be related to the authorization method you are using.

There were some recent changes to the user authorization methods fo Jira Cloud API calls relating to GDPR, and instead of using username:password for the authentications you will want to pass in a Auth token using basic authentication with an Atlassian account email address and API token 

Details on the token is described in the following document:

Regards,
Earl

Suggest an answer

Log in or Sign up to answer