Local Development in Bitbucket With App Password

On March 1st (although this didn’t affect me until March 10th…), Bitbucket stopped allowing users to push/pull code using the basic auth they use to login to bitbucket.com (see announcement). I guess the idea being that its a security vulnerability — the same creds used to manage your BitBucket account shouldn’t have the same scopes as the ones used to write code.

In any case, this immediately hosed my local IntelliJ environment and some of my personal Jenkins builds, which also were using the passwords (terrible, I know). In IntelliJ, when I tried to push code it failed and gave me this prompt.

But my normal password stopped working. I first tried to reset my BitBucket account to no avail. The new password didn’t solve the issue.

At this point, I had to either setup SSH keys or use App Passwords. SSH keys are kind of annoying because my IDE was already setup to use username/password, and I hate mucking with Windows Git Bash … inevitably it always screws something up. So instead I setup an app password.

In Bitbucket click on your avatar then Personal Settings -> App Passwords. Click “Create app password” and give it a name like “Local IDE” and give it the following permissions. I may also have given Account -> Write, but TBH don’t know what it does.

App Password with scope for local dev (may need Account -> Write too)

This will generate a one-time password, which you need to save. Put that password into the Atlassian login prompt above and voila, your IDE should work again.

--

--

--

Software Developer, Muay Thai Enthusiast

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Flux Set to Launch Decentralized Social Media Application, Dropalo.

Deploy Deep Learning (Part 1)

Routing Truck Rest Stops with TomTom Maps

Circumventing engineering complexity

an alternative webdesign story

Unity and Git

Multi-tenant SaaS on Kubernetes using Platform-as-Code

All About Copado and How It Improves Your Salesforce®

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adam Hughes

Adam Hughes

Software Developer, Muay Thai Enthusiast

More from Medium

Installing MongoDB on Windows (SIMPLE GUIDE)

Starting With Git and GitHub

How to fix Internal Server Error in WordPress — The Right Software

How to perform subdomain based routing using AWS with an application load balancer and Elastic…