Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,120
Community Members
 
Community Events
185
Community Groups

Authentication issue with API

Edited

Hello, sorry for reopening this thread. But I have a strange issue.

curl -L -X GET --user username:password http://api.bitbucket.org/2.0/repositories/<workspace>/

On Centos 7 this gives me:

Bitbucket Cloud recently stopped supporting account passwords for API authentication.
See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
App passwords are recommended for most use cases and can be created in your Personal settings:
https://bitbucket.org/account/settings/app-passwords/
For more details on API authentication methods see our documentation:
https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication

But on Fedora and Ubuntu works.

I need to make it work on CentOS 7, can you help me?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 15, 2022

Hi @Giovanni Cappellini,

We deprecated Bitbucket Cloud account passwords for Bitbucket API and Git activity earlier this year:

You will need to generate an app password for the Bitbucket Cloud account you use to authenticate with:

and then use your Bitbucket Username + app password for authentication in API calls.

The output on Centos is expected if you are using your account's password.

The strange thing is that you mention that it works in Fedora and Ubuntu.

  • Are you executing these API calls with curl from a terminal application in all 3 operating systems?
  • Are you passing the same credentials for username and password in all 3 cases?
  • I checked the Bitbucket Cloud account that has the same email as your community account, but I see that it doesn't have access to any repos. Are you facing this issue with a different Bitbucket account?

Just a heads up, I moved your question to a new post. It's best to create a separate question if you need assistance with an issue, as it can become difficult and confusing to troubleshoot multiple users' issues in one post.

Kind regards,
Theodora

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 15, 2022

One more thing I forgot to mention:

We display this message that you saw in Centos when an incorrect app password is used for authentication (and not only when someone uses their password).

In case you are already using app passwords, please make sure you provide the correct value.

If the issue persists, please leave an answer to the 3 questions I asked in my previous reply and we can further investigate.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events