Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

API Token Basic Authentication

I'm attempting to use the REST API using Basic Authentication with one of my JIRA account's API tokens, however all calls respond with a 401.

Here's an example CURL request (I removed the email:api_token base64 encoded string from this example)

curl -D- -X GET -H "Authorization: Basic <base64 encoded email:token>" -H "Content-Type: application/json"

Here's the response:

HTTP/2 401 
server: AtlassianProxy/
content-type: text/plain
strict-transport-security: max-age=315360000; includeSubDomains; preload
date: Wed, 13 May 2020 18:57:55 GMT
atl-traceid: 38b42bf62a17ae10
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
expect-ct: report-uri="", enforce, max-age=86400

Basic authentication with passwords is deprecated. For more information, see:

Is there something I am missing from the request?



1 answer

1 accepted

1 vote
Answer accepted

I battled with this error for some time today trying every example / format under the Sun (and cursing Atlassian), until I eventually determined that I missed a character off the original token - when I copied it from a saved location, to convert it to base64 -- effectively resulting in an invalid token.

And, unfortunately - if the Token (raw or base64 encoded) is wrong - you get the "401 - Basic authentication with passwords is deprecated" error - which can be misleading.

So... I would suggest that you double-check the token and try the request without base64. i.e.

curl -D- -X GET -u joe@bloggs.dom:xxxtokenxxx -H "Content-Type: application/json"

Then once it is working - go back to base64 (if required / with the correct/corrected string):

curl -D- -X GET -H "Authorization: Basic xxxxxxbase64encodedxxxxxx" -H "Content-Type: application/json"

 Also note: api/3 is now in Beta.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

291 views 2 10
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you