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/)
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.
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
Sure thing
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
same issue for me, resolved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tarmo,
Even If I use my username and password with https option for git clone, I often face this issue (requires single sign-on and create app password).
Creating app password and using the same with current username instead of the account password, will it resolve the problem?
Thanks in advance,
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tarmo,
What value are you using for apppwd_user
?
Alastair
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How do we use app password for git commit and push?
Currently getting follwoing error when trying to commit my changes:
"Because your Atlassian account admin requires single sign-on, 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/xxx/xxxxxxxxx.git/': The requested URL returned error: 403"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It depends on where are you trying to accessing from. There are some tools that have specific fields for username and password, other you can inform it in the URL.
I'm not completely sure, but I think it's https://username:password@bitbucket.org/[your_repo] os something like that.
Anyway, the most important thing to note is that, even after creating your app password, you must use your own bitbucket's "username" with your app's "password". That's the trick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ronan,
Thanks for your reply.
I was able to push my change the way you suggested using following command:
git push [branch name]https://username:password@bitbucket.org/[my repo].git
Best,
Soma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.