jeffwidman / bitbucket-issue-migration

A small script for migrating repo issues from Bitbucket to GitHub
GNU General Public License v3.0
314 stars 97 forks source link

Gracefully handle Bitbucket 2FA workflows #34

Closed jeffwidman closed 8 years ago

jeffwidman commented 8 years ago

like #9 but for BB.

Right now it's not an issue since we don't auth with BB, but will need addressing for #22

Unfortunately, Bitbucket doesn't support application specific passwords yet: https://bitbucket.org/site/master/issues/11774/application-specific-passwords-or-tokens

So until then:

  1. Add a note to the Readme
  2. check if there's a header or something that BB sends back when rejecting basic auth that indicates the user has 2FA and then catch the error and tell the user to disable 2FA