The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Basic authentication on Jira server instance always returns 401 unauthorized.

Shashi Gmail
September 21, 2020

While making the the following call

curl -v -H "Authorization: Basic base64encodeduseridpasswordgohere" -X GET -H "Content-Type: application/json" https://jira-stage.myserver.com/rest/api/2/issue/createmeta

I'm getting the 401 response back. The authentication works fine on browser. The same curl call works fine on different Jira server. Does this mean basic authentication is not supported on "jira-stage.myserver.com".

I've a connector application that uses basic authentication to synchronize data between Jira and another application so need to get basic authentication working for this instance.

 

HTTP/1.1 401 < Date: Mon, 21 Sep 2020 17:51:37 GMT

Server: Apache/2.4.6 (CentOS) PHP/5.4.16

X-AREQUESTID: 651x213257x1

X-ANODEID: jira_dfw9_2

X-XSS-Protection: 1; mode=block

X-Content-Type-Options: nosniff

X-Frame-Options: SAMEORIGIN

Content-Security-Policy: frame-ancestors 'self'

X-Seraph-LoginReason: AUTHENTICATED_FAILED

WWW-Authenticate: OAuth realm="https%3A%2F%2Fjira-stage.myserver.com"

Content-Type: text/html;charset=UTF-8

Transfer-Encoding: chunked

Set-Cookie: NSC_mc-306476464-1-310090117=ffffffff0926324b45525d5f4f58455e445a4a4229a0;expires=Tue, 22-Sep-2020 17:51:38 GMT;path=/;httponly

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.