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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket extension for visual studio - not allowing to login

I installed the bitbucket extension for VS 2017/2019 (tried in both versions that I have on my two machines). I have a free plan account with bitbucket and I could not login either using my email and pwd or username/pwd combination. It gives me the unauthorized error always.



2 answers

I use two factor authentication and without warning it does not work with auto login in Visual Studio 2017 anymore.
I looked at  Visual Studio Marketplace  and found an answer which worked for me.

I created an App Password in bitbucket and used the User-name which is generated for the url of git. Instead of the FQDN or email. Only the username is used for login.

Example: git URL :

The user name is: j_mayers
(without @ and DN)

Hope this helps others.



This is exactly what worked for me........was driving me MAD after the initial login failed several times and even the app password wasn't working either. I switched to that username and bingo! Thanks buddy.  ;)

0 votes
Ana Retamal Atlassian Team Oct 21, 2019

Hi @aravindk777 , welcome to the Community!

I unerstand you're having difficulties to connect to Bitbucket using the Visual Studio extension. For troubleshooting purposes, could you try to log in to Bitbucket directly using your browser and the same credentials you're trying with the Visual Studio app and let us know if it works?

If Bitbucket works but you're still unable to log in through the extension, please contact the developer of the plugin so they can continue helping you, you can find their page at Visual Studio Marketplace.

Hope that helps,


Hi, I have same issue. My bitbucket account is 2 factor auth enabled. What should I do now ?




Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,709 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you