Forums

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

Basic authentication ERROR 401 (but "Reason : OK")

Renaud GOISLOT
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 6, 2022

Hello,

We are currently testing on a pre-production platform for the transition from our Jira v7 platform to Jira v8.
However, we have noticed that since the switch to v8, it is no longer possible to use the "Basic" authentication method for the connection to the Jira API.

After consulting the documentation, I made the necessary changes on our scripts (like base64 encoding) and I tried some tests on Postman.

Unfortunately, this is what I get:

Capture.PNG

I get a "401" error but with the reason: OK.
This "Ok" confirms that my username and password are valid, although I get a 401 error.
I would like to specify that the test user has the administrator rights of the platform.

I also know that there is a "Bearer" connection method, but we would like to use the basic method that we used before.

Do you know how to solve this problem using the "Basic" method?

 

1 answer

0 votes
Mohamed Benziane
Community Champion
July 6, 2022

Hi,

You can still use the basic authentification in Jira 8. The basic auth is disabled only on Jira Cloud. Did you tried it ?

Renaud GOISLOT
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 6, 2022

The issue comes from the "Basic" method. The image above corresponds to the error I get on Postman with the basic authentication (the credentials are good and my account is in administrator of the platform).

I have indeed seen that this method is normally still available on Jira 8, that's why I don't understand why we receive a 401 error since the update.

Suggest an answer

Log in or Sign up to answer