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

error 403: authenticate with App Password

rogergoh March 13, 2021

Error Message:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin feature/x:feature/x
remote: Because you enabled two-step verification for your Atlassian account, you'll need to authenticate with an app password. Create an app password at https://bitbucket.org/account/admin/app-passwords
fatal: unable to access 'https://bitbucket.org/x.git/': The requested URL returned error: 403

 

However despite following the documentation and changing my authentication type to Basic with username and app password (with "Authentication OK" and green tick) it still spits out this error message after restarting.

Using Windows 10.

I've tried deleting pswd in AppData.

 

6 answers

1 accepted

13 votes
Answer accepted
Gopinath Emmidisetty
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 27, 2021

This worked for me where I have cloned the repo locally before creating the app passwords.

Given you have the app password created in your bitbucket repo

Then update your local git repo as below

git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/OWNER/REPO.git

Bogdan Petrut
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 14, 2021

worked just fine, thanks

Like Gopinath Emmidisetty likes this
Miaina ANDRIANA
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 3, 2021

thank you

Like Gopinath Emmidisetty likes this
Seung Hun Beak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 10, 2021

thank you

Like Gopinath Emmidisetty likes this
Abdullah Ramzan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 24, 2021

Thanks Gopinath🙌😍 - following command works for me.

git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/OWNER/REPO.git

Happy Christmas 🌲

Like Gopinath Emmidisetty likes this
7 votes
rogergoh March 13, 2021

Ignore this answer, I initiallly thought I had it fixed but the problem still persists.

2 votes
lchatin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 27, 2021

Hello,
Same problem.

When two-step verification is enabled, I cannot do any operation in the Sourcetree software. Whether it is through the classic interface or the terminal the error is the same, "error 403".

I tried deleting my account in Tools -> Options, but it doesn't fix the problem. I also tried to log out and log back into my Atlassian account through the internet browser.
On the other hand, if I cancel the two-step verification, it works perfectly well.

A solution ?

programmator May 28, 2021

I was having the same problem.

Had to cancel the two-step authentication to be able to work.

Like Camilo Cano likes this
Jonnathan Edbert Halim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 20, 2021

how to cancel the two-step verification?

programmator December 21, 2021

Now I'm not sure if I had it enabled in my Bitbucket account or Atlassian account, but you can check for yourself in the following links:

 

Bitbucket: https://bitbucket.org/account/settings/two-step-verification/manage

Atlassian: https://id.atlassian.com/manage-profile/security/two-step-verification

 

Hope it helps.

0 votes
danwithshenbergertech
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 2, 2021

I just encountered this problem too.  Set up an app password for Sourcetree, turned on TSV, and then couldn't access BitBucket through Sourcetree.  Turned off TSV and could access BB fine from Sourcetree.  When will this error be fixed?

0 votes
kodlan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 14, 2021

Having exactly the same problem. 

Did someone managed to make this work? Or cancelling 2FA is the only option?

0 votes
Pennylane Goodman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 26, 2021

I have this problem, too and it's very annoying. I have already refreshed my password and also set the user with this password on the repository and it still shows this error.

Maybe I should turn off two factor authentication because of this but that's not ideal.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events