I have checked out 10 bitbucket projects on my old laptop, and used them for years with intellij and git bash without having to authenticate when I pull/push etc.
I copied my dev folder to a new machine, and when I open each one, it asks me to login to bitbucket.org using either
1. username and password
2. credentials helper.
The username and password option wont take my AD Enterprise login. It will take a personal token, but I didn't use personal tokens before, and it means I have to setup every project with a personal token.
I tried credentials helper. This popped up an SSO login and I was able to authenticate with my AD login. however, it pops up with this login approx. every 5 minutes, even if I don't do anything. This has "broken" this project - I cant use it because I spend more time logging in than working.
As a third option, if you do "git pull" from command line, it pops up an atlassian dialog with two options:
1. browser
2. password/token.
If you select browser, it authenticates with AD SSO via web, but doesnt remember it (so you have to do it every time you want to pull or push.
Also tried this:
git config --global credential.helper 'cache --timeout=36000'
But this doesn't work at all, if I do "git pull" twice in a row, it still asks to login twice.
Any ideas how I get back to the original authentication where I didn't have to use personal tokens, was able to use my enterprises SSO, but didn't have to re-login every 5 minutes or every time I do a pull? Otherwise, what's the point of SSO?
'git remote -v' shows I'm using https:MyOrg@bitbucket.org/myproj/xxx
In desperation, I tried using token/password, although our org has said we should use SSO not tokens. Even using tokens, it still requires me to authenticate EVERY git operation.
Hi @SH
Username/password or email address/password are no longer accepted as authentication methods, and have not been for quite some time - you can see our update below:
If you're using an App Password or an OAuth token but are being prompted multiple times, it's likely that you have some old credentials cached somewhere. I would suggest ensuring that all stored passwords related to authentication over GIT are cleared from your machine (ie Credential Manager for Windows, Access Keychain for Mac or /etc/shadow folder for Linux).
Hope this helps. If you still encounter issues - please raise a ticket directly with our support team (as I can see you have a paid workspace):
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.