HTTP Basic authentication not working anymore for REST API


We were using REST API to load some test JIRA data in our eazyBI reporting application and we were using REST API with HTTP Basic authentication (as otherwise some APIs like "user" didn't return any results) and using our username and password. At least still in January 30 it was working.
But couple days ago I discovered that simple with my username and password in HTTP Basic authentication header returns 403 Forbidden response.
If I try another Atlassian JIRA site, for example, with HTTP Basic authentication then it still works.
Does anyone knows what has changed in authentication in recent weeks and why Basic authentication is not working anymore?
Kind regards,

2 answers

2 votes

You have to use Atlassian ID when you are logging in to

I have tested these commands and they work for me.


  1. Log in using Atlassian ID Rest resource and retrieve token:
  2. curl \
        -i -X POST \
        -H "Content-Type: application/json"\
        --data '{"username": "", "password": "foobar"}'




    Server: nginx
    Date: Mon, 03Feb 201405:57:27GMT
    Content-Type: application/json
    Transfer-Encoding: chunked
    Connection: keep-alive
    X-Frame-Options: DENY
    P3P: CP="This is not a P3P policy! See for more info."
    Set-Cookie: __ATL_TOKEN=L33TT0KEN; Version=1;; Path=/; HttpOnly
  3. Use the given cookie __ATL_TOKEN for subsequent requests


    curl \
        -D- -X GET \
        -H "Cookie:__ATL_TOKEN=L33TT0KEN; Version=1;; Path=/; HttpOnly"\

My question is about As I said I was using my Atlassian ID for HTTP Basic authentication and REST API was working with it until end of January. But something has changed in February and now just for site REST API with HTTP Basic authentication is returning 403 Forbidden response.

The server at can't be found, because the DNS lookup failed. Can you provide another url?

I will copy content from that page and paste it in a new answer.

Actually, I've edited this question instead.

Aargh, I mean this answer to the question.

Thanks, this is working for us as a workaround. But do you know the reason why normal HTTP Basic authentication is not working anymore for

I'm told that it's because Atlassian ID is now mandatory on this server.

I have a problem with basic auth too. Got 401. I tried culr wget http python-request. Samples from don't work. Please help.

Are you querying, a local dev instance of JIRA or another instance?

I found solution. I use email as login instead of username in jira. Please write this to doc file.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,711 views 17 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you