curl authentication POST

Yasir EL GHARNAJI August 20, 2019

Hi ! 

i want to recover Project from Jira and make in Json File, here is my cmd :

curl -k -w "\r" -H "Content-Type:application/json" -X POST --data @[deleted].json -u username:password https://jira.App

I have message error  : <p>Basic Authentication Failure - Reason : AUTHENTICATED_FAILED</p>

 

Need Help if you know why 

 

Thank you !

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2019

Hi Yasir,

I understand you are trying to make a REST API call, but are unexpectedly getting an authentication error.

Could you please let us know what the exact REST API endpoint you are trying to call here?  I am curious to see if we can recreate this exact error, but it matters what endpoint is being called here.

Also, is your Jira site behind a reverse proxy?  Sometimes these can 'eat' credentials.  Alek posted a possible alternative method you might be able to use get past this problem over in https://community.atlassian.com/t5/Jira-questions/JIRA-API-Basic-authentication-not-work/qaq-p/470677

Regards,

Andy

Suggest an answer

Log in or Sign up to answer