Bitbucket app password login fails

Hi!

I seem to be having trouble authenticating to my Bitbucket repo using App Passwords.

Here's what I did (following https://blog.bitbucket.org/2016/06/06/app-passwords-bitbucket-cloud/)

  1. Enabled 2-factor authentication
  2. Created a test repo with some dummy data
  3. Created an App Password, granted every permission possible
  4. Tried login via git command-line client:
    git clone https://apppwd_user:apppwd_pass@bitbucket.org/tarmokuuse/testrepo0.git

Login fails with the following message

Cloning into 'Testrepo0'...
remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
fatal: Authentication failed for 'https://apppwd_user:apppwd_pass@bitbucket.org/tarmokuuse/Testrepo0.git/'

Can anyone point out what's wrong here? Regarding the hint about the account password, I am using the Atlassian account which has a password set. I don't believe it's possible to have it any other way...

FYI: I am, in fact, trying to enable submodules in my Bitbucket Pipelines, which seems to require such hacks to work: https://answers.atlassian.com/questions/39445805. Login fails there in exactly the same way.

3 answers

1 accepted

Oh, I'm not supposed to use the name of the App Password as the login user, but rather my own user name. That's unexpected.

Thanks for the hints smile

Sure thing smile

same issue for me, resolved.

0 vote

Hi Tarmo,

What value are you using for apppwd_user?

Alastair

I had an similar issue. In the url make sure you are using ur id and the the system will ask for your password. Problem solved

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

24,341 views 26 12
Join discussion

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