Forums

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

JIRA rest calls are failing with 401 error AUTHENTICATED_FAILED

이재기
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!
January 7, 2019

im using c# / asp.net

 

we have 2 account 

account1: worl83@hunet.co.kr

apitoken: hUEMC34183bo4QZe4nzP5FFF

 

account2: jhko1015@hunet.co.kr

apitoken: czdm5qYEwujEhUxtfQmP0153

 

when called with CURL, both succeed.

(so.... I guess it's not an account issue.)

 

(account1 succeeds)

curl -D- -H "Authorization: Basic d29ybDgzQGh1bmV0LmNvLmtyOmhVRU1DMzQxODNibzRRWmU0bnpQNUZGRg==" -X GET -H "Content-Type:application/json" https://ihunet.atlassian.net/rest/api/2/issue/BB-35153

(account2 succeeds)

curl -D- -H "Authorization: Basic amhrbzEwMTVAaHVuZXQuY28ua3I6Y3pkbTVxWUV3dWpFaFV4dGZRbVAwMTUz" -X GET -H "Content-Type:application/json" https://ihunet.atlassian.net/rest/api/2/issue/BB-35153

 

 

BUT!!!!!!!!!!!!! 

when called with C#, account2 gets 401 error.

account1 succeeds in the same code

 

The json data is the same. Only the calling account is different.

 

please help me...

why is this?

do you know why?

1234.jpg

1 answer

0 votes
WMBitbucket
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 8, 2019

Hi,

 

It might be wise to remove the valid token from your post and generate some new one from your Jira env.

Those open the gate to your system to anyone ...

Suggest an answer

Log in or Sign up to answer