Authentication failed to bitbucket

前端 未结 25 1182
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-22 23:29

I\'m trying to push my project via the https protocol on bitbucket using sourcetree.
But I can\'t connect to bitbucket with my login and password (which work on the webs

25条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-23 00:09

    After fighting with this for a long time, it looks like I found something that seems to work. I was optimizing the urls to not include the username (keep it as generic as possible), but the authentication dialog kept popping up:

    I tried everything that came into mind, such as:

    1. Enable and disable MFA (Multi Factor Authentication)
    2. Create app passwords (again, with and without MFA enabled)

    No matter what tools I used (including SourceTree), nothing worked. The server kept returning: "Create an app password"

    Basically you must

    1. Use the url including the username (e.g. https://myusername@bitbucket.org/...)
    2. Use an app password created in bitbucket

    Would be so nice if the server would have returned this in the response instead of suggesting to use an app password...

提交回复
热议问题