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.
are you sure you generated your token properly?
do you have necessary permissions to browse projects?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.