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

Authentication issue with API

Giovanni Cappellini June 13, 2022

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.
June 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.
June 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