Jira Server HTTP Basic Authentication not working.

Rohit Sharma
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!
July 16, 2019

I am trying to access Jira server via the Jira rest API but returns an empty array.

curl -H "Authorization:Basic EnocodedToken" -X GET -H "Content-Type: application/json" https://jira_url/jira/rest/api/2/project

but it returns [] .

Http status is also 200.

 

Please note our jira server is not behind any proxy.

1 answer

0 votes
Ilya Turov
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.
July 16, 2019

are you sure you generated your token properly?

do you have necessary permissions to browse projects?

Rohit Sharma
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!
July 16, 2019

Yes the token generated is correct, I have cross checked it from multiple platforms and the user also has the necessary privileges to access.

In fact cookie-based authentication is working fine and i am able to get all details but in case of basic auth its not working , even tried through postman but same response.

And i am expected to use only basic authentication.

Suggest an answer

Log in or Sign up to answer