Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitbucket no longer supports account password for API authentication #399

Closed
dregad opened this issue Jul 13, 2022 · 0 comments
Closed

Bitbucket no longer supports account password for API authentication #399

dregad opened this issue Jul 13, 2022 · 0 comments

Comments

@dregad
Copy link
Member

dregad commented Jul 13, 2022

Attempting to import changesets for a Bitbucket repository results in failure

Oldest 'master' branch parent: ''
Retrieving master ... failed.
Looking up target commit for release/v2 ... 
SYSTEM NOTICE: 'Trying to get property 'target' of non-object' in '.../source-integration/SourceBitBucket/SourceBitBucket.php' line 339
SYSTEM NOTICE: 'Trying to get property 'hash' of non-object' in '.../source-integration/SourceBitBucket/SourceBitBucket.php' line 339
Retrieving  ... failed.

Debugging the API call, url_get() returns the following payload:

Bitbucket Cloud recently stopped supporting account passwords for API authentication.
See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
App passwords are recommended for most use cases and can be created in your Personal settings:
https://bitbucket.org/account/settings/app-passwords/
For more details on API authentication methods see our documentation:
https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication

@dregad dregad added this to the 2.5.3 milestone Jul 13, 2022
@dregad dregad closed this as completed in b666c7d Jul 15, 2022
dregad added a commit that referenced this issue Jul 15, 2022
Reflect end of support for account passwords for API authentication:
change the labels for bit_basic_login and bit_basic_pwd to reference
Username ant App Password instead of login/password for basic auth.

Also adapt bit_usernname and bit_reponame to avoid confusion.

Define a new label string and a constant to display a link to generate
an App Password.

Fixes #399
@dregad dregad modified the milestones: 2.5.3, 2.6.0 Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant