Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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.  ;)

Like Taurique Toffie likes this

@Joseph Mirwald  Please how did you access the "url of git".  I understand we can pick the user-name from there. But am not sure how to find the URL of Git 

Like burakturan9 likes this


Your email: Udochukwu.eze@somehwere.far

Your Bitbucket Account is mastered of: somecompany.far

Your Project is named: someproject

The URL is:

Hope that helps, because your question seems a bit confusing. We talk about accessing git Repository after change to "app-passwords" in bitbucket.

Thanks @Joseph Mirwald worked like a charm 1st time!

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,263 views 2 9
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